[PATCH] bq27000: Return -ENODEV in bq27000_battery_get_property if the battery is not

Paul Fertser fercerpav at gmail.com
Sun Jul 26 23:15:29 CEST 2009

Lars-Peter Clausen <lars at metafoo.de> writes:
> If the battery is not present hdq_read will always return an error.
> If the drivers knows that the battery is not present the correct thing to do is
> to return -ENODEV instead of passing the error on.
> Do this for all properties except POWER_SUPPLY_PROP_PRESENT.
> The power supply sysfs expects us to do so, else it won't generate a proper
> uevent file.

Applied after adding your Signed-off-by.

Thanks! :)

Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav at gmail.com

More information about the openmoko-kernel mailing list