Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1445632

[PATCH 2/2] led: is31fl32xx: define complete i2c_device_id table

From "H. Nikolaus Schaller" <hns@goldelico.com>
Newsgroups linux.kernel
Subject [PATCH 2/2] led: is31fl32xx: define complete i2c_device_id table
Date 2016-07-18 18:50 +0200
Message-ID <rWjTX-fe-5@gated-at.bofh.it> (permalink)
References <rWjTX-fe-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Otherwise the driver module will not be automatically probed.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 drivers/leds/leds-is31fl32xx.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/drivers/leds/leds-is31fl32xx.c b/drivers/leds/leds-is31fl32xx.c
index a53b71e..478844c 100644
--- a/drivers/leds/leds-is31fl32xx.c
+++ b/drivers/leds/leds-is31fl32xx.c
@@ -482,10 +482,16 @@ static int is31fl32xx_remove(struct i2c_client *client)
 }
 
 /*
- * i2c-core requires that id_table be non-NULL, even though
- * it is not used for DeviceTree based instantiation.
+ * i2c-core (and modalias) requires that id_table be properly filled,
+ * even though it is not used for DeviceTree based instantiation.
  */
 static const struct i2c_device_id is31fl32xx_id[] = {
+	{ "is31fl3236" },
+	{ "is31fl3235" },
+	{ "is31fl3218" },
+	{ "sn3218" },
+	{ "is31fl3216" },
+	{ "sn3216" },
 	{},
 };
 
-- 
2.7.3

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 2/2] led: is31fl32xx: define complete i2c_device_id table "H. Nikolaus Schaller" <hns@goldelico.com> - 2016-07-18 18:50 +0200

csiph-web