]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerAnton Vorontsov <avorontsov@ru.mvista.com>
Wed, 2 Dec 2009 21:38:06 +0000 (00:38 +0300)
commita0d55ee94008d6d060f5a267c838f27129611c5c
tree8046983fd1d9a89a34e61619f35be6b3ec78789c
parentc3fd4bb823eee8802fea0d00ed1d2ddc0f3ac490
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