[PATCH 1/4] mfd: ab8500: add devicetree support for fuelgauge
Rajanikanth HV
rajanikanth.hv at linaro.org
Sat Oct 27 12:00:44 EDT 2012
On 27 October 2012 20:37, Francesco Lavra <francescolavra.fl at gmail.com> wrote:
> On 10/25/2012 08:30 AM, Rajanikanth H.V wrote:
>> From: "Rajanikanth H.V" <rajanikanth.hv at stericsson.com>
>> + bat_tech = of_get_property(np_bat_supply,
>> + "stericsson,battery-type", NULL);
>> + if (!bat_tech)
>> + dev_warn(dev, "missing property battery-name/type\n");
>> +
>> + if (strncmp(bat_tech, "LION", 4) == 0) {
>
> What if bat_tech is NULL?
It will be UNKNOWN
More information about the linux-arm-kernel
mailing list