summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2023-11-13 01:54:41 +0300
committerWolfram Sang <wsa@kernel.org>2024-01-18 23:10:41 +0300
commit73febd775bdbdb98c81255ff85773ac410ded5c4 (patch)
tree284e43748c25f05ae65d63c4d454ab91dd2a1c7e /include
parentf79ad78a25841fdde6cd589969966fb113cf1d10 (diff)
downloadlinux-73febd775bdbdb98c81255ff85773ac410ded5c4.tar.xz
i2c: create debugfs entry per adapter
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/i2c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index d029aade338f..e01fb1097868 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -746,6 +746,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)