]> 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>
Wed, 5 Dec 2012 18:55:54 +0000 (10:55 -0800)
commit46d784629202c5da9be8d727988e7083fb455bf8
treeabff9c58c8e94c4b9433145f67f5da33f1bbd62b
parent22e32f4f57778ebc6e17812fa3008361c05d64f9
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]