]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (ads7828) driver cleanup
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Wed, 3 Oct 2012 20:54:07 +0000 (16:54 -0400)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 5 Nov 2012 16:07:18 +0000 (08:07 -0800)
commit0786fa90fb3f469e64291b5f2c3e5e0c923fac36
treeafaef03386777f093035c1dbda69b78c1520581e
parent3d70f8c617a436c7146ecb81df2265b4626dfe89
hwmon: (ads7828) driver cleanup

As there is no reliable way to identify the chip, it is preferable to
remove the detect callback, to avoid misdetection.

Module parameters are not worth it here, so let's get rid of them and
add an ads7828_platform_data structure instead.

Clean the code by removing unused macros, fixing coding style issues,
avoiding function prototypes and using convenient macros such as
module_i2c_driver().

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/ads7828
drivers/hwmon/ads7828.c
include/linux/platform_data/ads7828.h [new file with mode: 0644]