]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (ina2xx) use module_i2c_driver to simplify the code
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 8 Oct 2012 12:40:35 +0000 (20:40 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 20 Oct 2012 20:36:19 +0000 (13:36 -0700)
commited0a8d3dd393b6150c7966adfaeadaadec00d958
tree462ae3dd9d4135c81e714760310c8b50f2172ff8
parent934f8cf398fe123f0701bbc9a912a7e766db6b75
hwmon: (ina2xx) use module_i2c_driver to simplify the code

Use the module_i2c_driver() macro to make the code smaller
and a bit simpler.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ina2xx.c