summaryrefslogtreecommitdiffstats
path: root/Documentation/i2c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2024-11-12 22:01:00 +0100
committerWolfram Sang <wsa+renesas@sang-engineering.com>2024-11-14 10:35:30 +0100
commit397295d1be753cf0c798cacba0f8083413641dc1 (patch)
treeb54e322ca368eb7869cc8fde494e1c88b1f24b5b /Documentation/i2c
parenti2c: Use *-y instead of *-objs in Makefile (diff)
downloadlinux-397295d1be753cf0c798cacba0f8083413641dc1.tar.xz
linux-397295d1be753cf0c798cacba0f8083413641dc1.zip
Documentation: i2c: Constify struct i2c_device_id
Constify the i2c_device_id structure in the doc to give a cleaner starting point. Also remove an empty line which is usually not added. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'Documentation/i2c')
-rw-r--r--Documentation/i2c/writing-clients.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/i2c/writing-clients.rst b/Documentation/i2c/writing-clients.rst
index 0b8439ea954c..121e618e72ec 100644
--- a/Documentation/i2c/writing-clients.rst
+++ b/Documentation/i2c/writing-clients.rst
@@ -31,12 +31,11 @@ driver model device node, and its I2C address.
::
- static struct i2c_device_id foo_idtable[] = {
+ static const struct i2c_device_id foo_idtable[] = {
{ "foo", my_id_for_foo },
{ "bar", my_id_for_bar },
{ }
};
-
MODULE_DEVICE_TABLE(i2c, foo_idtable);
static struct i2c_driver foo_driver = {