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>
This commit is contained in:
Christophe JAILLET 2024-11-12 22:01:00 +01:00 committed by Wolfram Sang
parent 6fc0ce1d32
commit 397295d1be

View File

@ -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 = {