bq27x00: Return -ENODEV for properties if the battery is not present
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 24 May 2010 19:57:33 +0000 (21:57 +0200)
committerLars-Peter Clausen <lars@metafoo.de>
Tue, 22 Feb 2011 10:02:40 +0000 (11:02 +0100)
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>

No differences found