Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christophe JAILLET and committed by
Wolfram Sang
397295d1 6fc0ce1d

+1 -2
+1 -2
Documentation/i2c/writing-clients.rst
··· 31 31 32 32 :: 33 33 34 - static struct i2c_device_id foo_idtable[] = { 34 + static const struct i2c_device_id foo_idtable[] = { 35 35 { "foo", my_id_for_foo }, 36 36 { "bar", my_id_for_bar }, 37 37 { } 38 38 }; 39 - 40 39 MODULE_DEVICE_TABLE(i2c, foo_idtable); 41 40 42 41 static struct i2c_driver foo_driver = {