hwmon: (tmp421) Fix return value
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 11 Sep 2013 04:19:52 +0000 (09:49 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 11 Sep 2013 20:01:41 +0000 (13:01 -0700)
commit010a166a5202f6297e196624a0671c4815032e38
tree6288f8a7c035ff17a3d8e465c65d00b505ff6134
parent17a52100b03864b5e58fb45ec6b42d4fd81c4808
hwmon: (tmp421) Fix return value

Propagate return value obtained from i2c_smbus_read_byte_data()
instead of hardcoding.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Andre Prendel <andre.prendel@gmx.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp421.c