Re: [Patch V3] drivers: power: Add support for bq24735 charger

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,

> +       if (gpio_is_valid(charger->pdata->status_gpio)) {
> +               ret = devm_gpio_request(&client->dev,
> +                                       charger->pdata->status_gpio,
> +                                       name);
> +               if (ret)
> +                       dev_err(&client->dev, "Failed GPIO request: %d\n", ret);

This should include GPIO number also to show error with more verbosity.

Regards
Manish Badarkhe
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux