aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-03-30 15:46:40 -0400
committerJean Delvare <khali@linux-fr.org>2009-03-30 15:46:40 -0400
commit594592dc6f68356a3b7278eb4d260a50a66f0a06 (patch)
tree0bdb535a8e3bcd0f4ea03fdc86842709e9ea4b50 /drivers/input
parent9202add67454c6a6f9508f41e733edce705dc56e (diff)
hwmon: (ds1621) Clean up register access
Fix a few oddities in how the ds1621 driver accesses the registers: * We don't need a wrapper to access the configuration register. * Check for error before calling swab16. Error checking isn't complete yet, but that's a start. * Device-specific read functions should never be called during detection, as by definition we don't know what device we are talking to at that point. * Likewise, don't assume that register reads succeed during detection. Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions