From: Christophe JAILLET Date: Tue, 12 Nov 2024 21:01:00 +0000 (+0100) Subject: Documentation: i2c: Constify struct i2c_device_id X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=397295d1be753cf0c798cacba0f8083413641dc1;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Wolfram Sang --- diff --git a/Documentation/i2c/writing-clients.rst b/Documentation/i2c/writing-clients.rst index 0b8439ea954cc..121e618e72ec5 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 = {