]> 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, 12 Nov 2012 14:55:45 +0000 (06:55 -0800)
commit23e56d46e591ae5b3d72fd51ee1a525e7a46e0e8
tree0a317cb285635292cc357e76e2631aa804bde273
parent77b67063bb6bce6d475e910d3b886a606d0d91f7
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]