[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <63517786a4e0c68808fdc41592b1bfe870b1e849.1468859975.git.hns@goldelico.com>
Date: Mon, 18 Jul 2016 18:39:35 +0200
From: "H. Nikolaus Schaller" <hns@...delico.com>
To: Richard Purdie <rpurdie@...ys.net>,
Jacek Anaszewski <j.anaszewski@...sung.com>,
Rob Herring <robh+dt@...nel.org>,
Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>, drivshin.allworx@...il.com
Cc: linux-leds@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel@...a-handheld.com, marek@...delico.com,
letux-kernel@...nphoenux.org,
Andrey Utkin <andrey_utkin@...tmail.com>,
"H. Nikolaus Schaller" <hns@...delico.com>
Subject: [PATCH 2/2] led: is31fl32xx: define complete i2c_device_id table
Otherwise the driver module will not be automatically probed.
Signed-off-by: H. Nikolaus Schaller <hns@...delico.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
Powered by blists - more mailing lists