bq27000: report missing device better.
authorMarek Belisko <marek@goldelico.com>
Mon, 30 Jun 2014 19:49:56 +0000 (21:49 +0200)
committerSebastian Reichel <sre@kernel.org>
Fri, 18 Jul 2014 21:40:22 +0000 (23:40 +0200)
commit3dd843e1c26a023dc8d776e5d984c635c642785f
treeef5a65a69280bc6d2aa3e2a88a625b1609a7847d
parent1cb82fdb2a0fb2af9da69eeee92877189ec9a560
bq27000: report missing device better.

One an hdq buss, a missing device reads as 0xff, not -1.
So do a translation to allow detecting of a missing bus.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/bq27x00_battery.c