aboutsummaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2014-11-27 10:59:06 +0100
committerGuenter Roeck <[email protected]>2014-11-30 20:13:14 -0800
commitf975b3399c0a35439c48b89d1afffc4d86276d0f (patch)
tree0a2d4c292731e64ac425c6289bb957cae81fb15d /scripts/objdiff
parent9cd892bcbe32fed1b78fe1b742d887ed2be1791d (diff)
hwmon: (ina2xx) bail-out from ina2xx_probe() in case of configuration errors
The return value of i2c_smbus_write_word_swapped() isn't checked in ina2xx_probe(). This leads to devices being registered even if they cannot be physically detected (e.g. device is not powered-up at boot-time). Even after restoring power to such device, it is left unconfigured as the configuration has never been actually written to the register. Error out in case of write errors in probe and notify the user. Signed-off-by: Bartosz Golaszewski <[email protected]> [Guenter Roeck: Fixed multi-line comment style] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions