greybus: battery-gb: Allow kernel values to get out of sync with greybus spec
authorGreg Kroah-Hartman <greg@kroah.com>
Tue, 21 Oct 2014 08:25:13 +0000 (16:25 +0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 21 Oct 2014 08:25:13 +0000 (16:25 +0800)
commit0369a459982f58688235000fc8990b70e7553e6e
tree93e3a86ee965b7f49a1c6a322e00b00eac28c126
parentc9346e19b25f9abc7630200d7d180a20224a956c
greybus: battery-gb: Allow kernel values to get out of sync with greybus spec

We can't know that the greybus values and the kernel values for a number
of battery enumerated types will remain in sync.  And as theses are sent
by an external device from the kernel, we have to explicitly check these
values.

Reported-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/battery-gb.c