public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] power_supply: Add MODULE_DEVICE_TABLE for lp8727 charger
@ 2012-01-12 12:45 Axel Lin
  2012-01-16  5:07 ` Kim, Milo
  2012-03-15 17:06 ` Anton Vorontsov
  0 siblings, 2 replies; 4+ messages in thread
From: Axel Lin @ 2012-01-12 12:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: Milo(Woogyom) Kim, Daniel Jeong, Anton Vorontsov

Add MODULE_DEVICE_TABLE to setup modalias for lp8727.
The i2c_device_id table is supposed to be zero-terminated.
Thus add a missing terminate entry for lp8727_ids.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/power/lp8727_charger.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/power/lp8727_charger.c b/drivers/power/lp8727_charger.c
index b15b575..8e901c9 100644
--- a/drivers/power/lp8727_charger.c
+++ b/drivers/power/lp8727_charger.c
@@ -464,7 +464,9 @@ static int __devexit lp8727_remove(struct i2c_client *cl)
 
 static const struct i2c_device_id lp8727_ids[] = {
 	{"lp8727", 0},
+	{ },
 };
+MODULE_DEVICE_TABLE(i2c, lp8727_ids);
 
 static struct i2c_driver lp8727_driver = {
 	.driver = {
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-15 17:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-12 12:45 [PATCH] power_supply: Add MODULE_DEVICE_TABLE for lp8727 charger Axel Lin
2012-01-16  5:07 ` Kim, Milo
2012-01-16  5:46   ` Axel Lin
2012-03-15 17:06 ` Anton Vorontsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox