Re: [PATCH] drm/tegra: switch to using devm_gpiod_get_optional

2019-09-16 Thread Dmitry Torokhov
On Mon, Sep 16, 2019 at 03:59:04PM +0200, Thierry Reding wrote: > On Sun, Sep 15, 2019 at 12:13:23AM -0700, Dmitry Torokhov wrote: > > We do not really need to use API that fetches GPIO data from an > > arbitrary device tree node, as we are dealing with device tree node > > assigned to the device s

Re: [PATCH] drm/tegra: switch to using devm_gpiod_get_optional

2019-09-16 Thread Thierry Reding
On Sun, Sep 15, 2019 at 12:13:23AM -0700, Dmitry Torokhov wrote: > We do not really need to use API that fetches GPIO data from an > arbitrary device tree node, as we are dealing with device tree node > assigned to the device structure. We can easily switch to > devm_gpiod_get_optional() plus gpiod

[PATCH] drm/tegra: switch to using devm_gpiod_get_optional

2019-09-15 Thread Dmitry Torokhov
We do not really need to use API that fetches GPIO data from an arbitrary device tree node, as we are dealing with device tree node assigned to the device structure. We can easily switch to devm_gpiod_get_optional() plus gpiod_set_consumer_name() and clean up the code. Note this is part of efforts