Commit 397295d1 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Wolfram Sang
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
parent 6fc0ce1d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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 = {