]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (emc6w201) Properly handle all errors
authorJean Delvare <khali@linux-fr.org>
Sun, 3 Jul 2011 11:32:53 +0000 (13:32 +0200)
committerJean Delvare <khali@endymion.delvare>
Sun, 3 Jul 2011 11:32:53 +0000 (13:32 +0200)
commit720b4f603ac1d727d7cb148ce5571d9922b472a6
treef25003224131eec9637a137587182b6ba3e0903f
parentb5cff96cc9f1cd9c0403c1b0973a5e6ad98c87f2
hwmon: (emc6w201) Properly handle all errors

Handle errors on 8-bit register reads and writes too. Also use likely
and unlikely to make the functions faster on success.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/emc6w201.c