* [PATCH] gpiolib: remove unnecessary argument from set_config call
@ 2020-01-20 10:46 Kent Gibson
2020-01-29 10:55 ` Bartosz Golaszewski
0 siblings, 1 reply; 4+ messages in thread
From: Kent Gibson @ 2020-01-20 10:46 UTC (permalink / raw)
To: linux-kernel, linux-gpio, bgolaszewski, linus.walleij; +Cc: Kent Gibson
Remove unnecessary argument when setting PIN_CONFIG_BIAS_DISABLE.
Fixes: 2148ad7790ea ("gpiolib: add support for disabling line bias")
Signed-off-by: Kent Gibson <warthog618@gmail.com>
---
No argument is expected by pinctrl, so removing it should be harmless.
drivers/gpio/gpiolib.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 78a16e42f222..93d12fc9f82d 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -3057,7 +3057,6 @@ static int gpio_set_config(struct gpio_chip *gc, unsigned offset,
unsigned arg;
switch (mode) {
- case PIN_CONFIG_BIAS_DISABLE:
case PIN_CONFIG_BIAS_PULL_DOWN:
case PIN_CONFIG_BIAS_PULL_UP:
arg = 1;
--
2.24.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] gpiolib: remove unnecessary argument from set_config call
2020-01-20 10:46 [PATCH] gpiolib: remove unnecessary argument from set_config call Kent Gibson
@ 2020-01-29 10:55 ` Bartosz Golaszewski
2020-01-29 12:33 ` Kent Gibson
0 siblings, 1 reply; 4+ messages in thread
From: Bartosz Golaszewski @ 2020-01-29 10:55 UTC (permalink / raw)
To: Kent Gibson; +Cc: LKML, linux-gpio, Linus Walleij
pon., 20 sty 2020 o 11:46 Kent Gibson <warthog618@gmail.com> napisał(a):
>
> Remove unnecessary argument when setting PIN_CONFIG_BIAS_DISABLE.
>
> Fixes: 2148ad7790ea ("gpiolib: add support for disabling line bias")
> Signed-off-by: Kent Gibson <warthog618@gmail.com>
> ---
>
> No argument is expected by pinctrl, so removing it should be harmless.
>
This doesn't really fix any bug, does it? If not, then I'll just take
it for v5.7 after the merge window.
Bart
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gpiolib: remove unnecessary argument from set_config call
2020-01-29 10:55 ` Bartosz Golaszewski
@ 2020-01-29 12:33 ` Kent Gibson
2020-02-04 10:04 ` Bartosz Golaszewski
0 siblings, 1 reply; 4+ messages in thread
From: Kent Gibson @ 2020-01-29 12:33 UTC (permalink / raw)
To: Bartosz Golaszewski; +Cc: LKML, linux-gpio, Linus Walleij
On Wed, Jan 29, 2020 at 11:55:49AM +0100, Bartosz Golaszewski wrote:
> pon., 20 sty 2020 o 11:46 Kent Gibson <warthog618@gmail.com> napisał(a):
> >
> > Remove unnecessary argument when setting PIN_CONFIG_BIAS_DISABLE.
> >
> > Fixes: 2148ad7790ea ("gpiolib: add support for disabling line bias")
> > Signed-off-by: Kent Gibson <warthog618@gmail.com>
> > ---
> >
> > No argument is expected by pinctrl, so removing it should be harmless.
> >
>
> This doesn't really fix any bug, does it? If not, then I'll just take
> it for v5.7 after the merge window.
>
This is just fixing what I suspect was a cut-and-paste error on my part
that wasn't picked up during review - until I had a closer look
following Geert and Andy's recent comments on some of your proposed
changes. So it is just a tidy up.
It could only a problem if a pinctrl is making use of the unnecessary
argument, and there are no such pinctrls that I am aware of.
Merge it in whenever it is convenient.
Cheers,
Kent.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gpiolib: remove unnecessary argument from set_config call
2020-01-29 12:33 ` Kent Gibson
@ 2020-02-04 10:04 ` Bartosz Golaszewski
0 siblings, 0 replies; 4+ messages in thread
From: Bartosz Golaszewski @ 2020-02-04 10:04 UTC (permalink / raw)
To: Kent Gibson; +Cc: LKML, linux-gpio, Linus Walleij
śr., 29 sty 2020 o 13:33 Kent Gibson <warthog618@gmail.com> napisał(a):
>
> On Wed, Jan 29, 2020 at 11:55:49AM +0100, Bartosz Golaszewski wrote:
> > pon., 20 sty 2020 o 11:46 Kent Gibson <warthog618@gmail.com> napisał(a):
> > >
> > > Remove unnecessary argument when setting PIN_CONFIG_BIAS_DISABLE.
> > >
> > > Fixes: 2148ad7790ea ("gpiolib: add support for disabling line bias")
> > > Signed-off-by: Kent Gibson <warthog618@gmail.com>
> > > ---
> > >
> > > No argument is expected by pinctrl, so removing it should be harmless.
> > >
> >
> > This doesn't really fix any bug, does it? If not, then I'll just take
> > it for v5.7 after the merge window.
> >
>
> This is just fixing what I suspect was a cut-and-paste error on my part
> that wasn't picked up during review - until I had a closer look
> following Geert and Andy's recent comments on some of your proposed
> changes. So it is just a tidy up.
>
> It could only a problem if a pinctrl is making use of the unnecessary
> argument, and there are no such pinctrls that I am aware of.
>
> Merge it in whenever it is convenient.
>
> Cheers,
> Kent.
I'm picking up various early fixes for v5.6 so I'll go ahead and apply
it while at it.
Bart
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-02-04 10:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20 10:46 [PATCH] gpiolib: remove unnecessary argument from set_config call Kent Gibson
2020-01-29 10:55 ` Bartosz Golaszewski
2020-01-29 12:33 ` Kent Gibson
2020-02-04 10:04 ` Bartosz Golaszewski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.