summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-06-30 11:24:27 +0200
committerUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-07-03 07:38:15 +0200
commit6d924c42e0ada2a9938b2a9c0b9bbc406c6282ce (patch)
tree30635c46249938690a3d9de6d130318542d854b8
parent2fb03de5256989d603f68dc07f06b6dbd72a9d92 (diff)
downloadlinux-2.6-6d924c42e0ada2a9938b2a9c0b9bbc406c6282ce.tar.gz
linux-2.6-6d924c42e0ada2a9938b2a9c0b9bbc406c6282ce.zip
i2c: Let i2c-core.h include <linux/i2c.h>
The subsystem private header i2c-core.h uses several symbols defined in <linux/i2c.h>, e.g. struct i2c_board_info and i2c_lock_bus()). This doesn't pose a problem in practise because all files including "i2c-core.h" also include <linux/i2c.h>. To make this more robust add an include statement for <linux/i2c.h> making the header self-contained. Acked-by: Danilo Krummrich <dakr@kernel.org> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://patch.msgid.link/46aa85ab3dc4e63bfb5bd8ff1fd212a3d0e31f58.1782808461.git.u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
-rw-r--r--drivers/i2c/i2c-core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-core.h b/drivers/i2c/i2c-core.h
index 4797ba88331c..c519da536647 100644
--- a/drivers/i2c/i2c-core.h
+++ b/drivers/i2c/i2c-core.h
@@ -3,6 +3,7 @@
* i2c-core.h - interfaces internal to the I2C framework
*/
+#include <linux/i2c.h>
#include <linux/kconfig.h>
#include <linux/rwsem.h>