]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: create debugfs entry per adapter
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 12 Nov 2023 22:54:41 +0000 (17:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:43 +0000 (15:11 +0200)
commit0e8926abfd7aee220e44be5566affd7a8580b50e
tree56b636e7024a384ec3506e0b44f4463dc5e92516
parent19e9b89c2c7a6cbe1e3ea14e257f264c106c028f
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>
drivers/i2c/i2c-core-base.c
include/linux/i2c.h