* [lm-sensors] [PATCH] hwmon: (ina2xx) Use module_i2c_driver macro
@ 2012-10-11 15:56 ` Axel Lin
0 siblings, 0 replies; 4+ messages in thread
From: Axel Lin @ 2012-10-11 15:56 UTC (permalink / raw)
To: Jean Delvare, Guenter Roeck; +Cc: Lothar Felten, lm-sensors, linux-kernel
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/hwmon/ina2xx.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c
index 2b72634..8e7158c 100644
--- a/drivers/hwmon/ina2xx.c
+++ b/drivers/hwmon/ina2xx.c
@@ -302,19 +302,8 @@ static struct i2c_driver ina2xx_driver = {
.id_table = ina2xx_id,
};
-static int __init ina2xx_init(void)
-{
- return i2c_add_driver(&ina2xx_driver);
-}
-
-static void __exit ina2xx_exit(void)
-{
- i2c_del_driver(&ina2xx_driver);
-}
+module_i2c_driver(ina2xx_driver);
MODULE_AUTHOR("Lothar Felten <l-felten@ti.com>");
MODULE_DESCRIPTION("ina2xx driver");
MODULE_LICENSE("GPL");
-
-module_init(ina2xx_init);
-module_exit(ina2xx_exit);
--
1.7.9.5
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] hwmon: (ina2xx) Use module_i2c_driver macro
@ 2012-10-11 15:56 ` Axel Lin
0 siblings, 0 replies; 4+ messages in thread
From: Axel Lin @ 2012-10-11 15:56 UTC (permalink / raw)
To: Jean Delvare, Guenter Roeck; +Cc: Lothar Felten, lm-sensors, linux-kernel
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/hwmon/ina2xx.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c
index 2b72634..8e7158c 100644
--- a/drivers/hwmon/ina2xx.c
+++ b/drivers/hwmon/ina2xx.c
@@ -302,19 +302,8 @@ static struct i2c_driver ina2xx_driver = {
.id_table = ina2xx_id,
};
-static int __init ina2xx_init(void)
-{
- return i2c_add_driver(&ina2xx_driver);
-}
-
-static void __exit ina2xx_exit(void)
-{
- i2c_del_driver(&ina2xx_driver);
-}
+module_i2c_driver(ina2xx_driver);
MODULE_AUTHOR("Lothar Felten <l-felten@ti.com>");
MODULE_DESCRIPTION("ina2xx driver");
MODULE_LICENSE("GPL");
-
-module_init(ina2xx_init);
-module_exit(ina2xx_exit);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [lm-sensors] [PATCH] hwmon: (ina2xx) Use module_i2c_driver macro
2012-10-11 15:56 ` Axel Lin
@ 2012-10-11 16:22 ` Guenter Roeck
-1 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2012-10-11 16:22 UTC (permalink / raw)
To: Axel Lin; +Cc: Jean Delvare, Lothar Felten, lm-sensors, linux-kernel
On Thu, Oct 11, 2012 at 11:56:26PM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> drivers/hwmon/ina2xx.c | 13 +------------
> 1 file changed, 1 insertion(+), 12 deletions(-)
>
Hi Axel,
A similar patch from Wei Yongjun is already queued in my -next branch.
It is not in linux-next yet since I am supposed to hold off until
the commit window closes.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] hwmon: (ina2xx) Use module_i2c_driver macro
@ 2012-10-11 16:22 ` Guenter Roeck
0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2012-10-11 16:22 UTC (permalink / raw)
To: Axel Lin; +Cc: Jean Delvare, Lothar Felten, lm-sensors, linux-kernel
On Thu, Oct 11, 2012 at 11:56:26PM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> drivers/hwmon/ina2xx.c | 13 +------------
> 1 file changed, 1 insertion(+), 12 deletions(-)
>
Hi Axel,
A similar patch from Wei Yongjun is already queued in my -next branch.
It is not in linux-next yet since I am supposed to hold off until
the commit window closes.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-11 16:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-11 15:56 [lm-sensors] [PATCH] hwmon: (ina2xx) Use module_i2c_driver macro Axel Lin
2012-10-11 15:56 ` Axel Lin
2012-10-11 16:22 ` [lm-sensors] " Guenter Roeck
2012-10-11 16:22 ` Guenter Roeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.