]> 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>
Sun, 14 Oct 2012 22:21:42 +0000 (15:21 -0700)
commit823b8e2757d8010084153b84473340b63348dad1
tree847ddc7f48d624482a82d42ddf9435a82e8a2a8f
parent1102dcab849313bd5a340b299b5cf61b518fbc0f
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]