]> 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>
Tue, 30 Oct 2012 00:48:34 +0000 (17:48 -0700)
commit46dbe5a73bcf5a0283b5db08f2e9a9e4b39b5a17
tree850c8c72dc899d62d72e755add6eaba30ef97ee0
parentd034fbf08b6fe86271d0d0bd332edabeb5749fd6
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]