aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorJean Delvare <[email protected]>2009-03-30 21:46:40 +0200
committerJean Delvare <[email protected]>2009-03-30 21:46:40 +0200
commit594592dc6f68356a3b7278eb4d260a50a66f0a06 (patch)
tree0bdb535a8e3bcd0f4ea03fdc86842709e9ea4b50 /lib/string_helpers.c
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 <[email protected]> Cc: Aurelien Jarno <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions