commit | 3413b4ea250ff0b4142a154a2764e33979957e8b | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Mon May 24 21:57:33 2010 +0200 |
committer | Lars-Peter Clausen <lars@metafoo.de> | Tue Feb 22 11:02:40 2011 +0100 |
tree | b93cc44a5ee6880995f22bdc4601e0143b3f1472 | |
parent | a2e5118c370e78c3841606e7edc7677c986325fa [diff] |
bq27x00: Return -ENODEV for properties if the battery is not present This patch changes get_property callback of the bq27x00 battery to return -ENODEV for properties other then the PROP_PRESENT if the battery is not present. The power subsystem core expects a driver to behave that way. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Rodolfo Giometti <giometti@linux.it> Tested-by: Grazvydas Ignotas <notasas@gmail.com>