power_supply_sysfs: Handle -ENODATA in a special way
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Wed, 2 Dec 2009 21:24:51 +0000 (00:24 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 27 Feb 2010 15:10:42 +0000 (17:10 +0200)
commit8adb667caa0f12fe89d911ca85e81f2162d691ba
treef100ebd14b88234a0fae9997518f2d1fef2abdcc
parenta1d7c9190786c2d5a539ad930e9228b29b29f1f9
power_supply_sysfs: Handle -ENODATA in a special way

There are cases when some device can not report any meaningful value,
e.g. TWL4030 charger can report voltage only when charging is
active.

In these cases drivers will return -ENODATA, and we shouldn't flood
kernel log with error messages.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
drivers/power/power_supply_sysfs.c