diff options
| author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2023-11-13 01:54:41 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-17 16:11:43 +0300 |
| commit | 0e8926abfd7aee220e44be5566affd7a8580b50e (patch) | |
| tree | 56b636e7024a384ec3506e0b44f4463dc5e92516 /include | |
| parent | 19e9b89c2c7a6cbe1e3ea14e257f264c106c028f (diff) | |
| download | linux-0e8926abfd7aee220e44be5566affd7a8580b50e.tar.xz | |
i2c: create debugfs entry per adapter
[ Upstream commit 73febd775bdbdb98c81255ff85773ac410ded5c4 ]
Two drivers already implement custom debugfs handling for their
i2c_adapter and more will come. So, let the core create a debugfs
directory per adapter and pass that to drivers for their debugfs files.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Stable-dep-of: 8d3cefaf6592 ("i2c: core: Lock address during client device instantiation")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/i2c.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 8bcc0142c32c..7c2ff4d7c360 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -740,6 +740,8 @@ struct i2c_adapter { struct irq_domain *host_notify_domain; struct regulator *bus_regulator; + + struct dentry *debugfs; }; #define to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev) |
