Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1632822 > unrolled thread
| Started by | "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org> |
|---|---|
| First post | 2017-04-28 14:00 +0200 |
| Last post | 2017-04-28 14:00 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] staging: sm750fb: Combine set GPIO 30 & 31 into one statement "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org> - 2017-04-28 14:00 +0200
| From | "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2017-04-28 14:00 +0200 |
| Subject | Re: [PATCH] staging: sm750fb: Combine set GPIO 30 & 31 into one statement |
| Message-ID | <tBcJ4-6Ni-9@gated-at.bofh.it> |
On Tue, Apr 25, 2017 at 03:53:02PM +0000, Lynn Lei wrote: > Combine two separate set GPIO(30 & 31) operations into one statement. Why? > > Signed-off-by: Lynn Lei <lynnl.jr@outlook.com> > --- > drivers/staging/sm750fb/ddk750_hwi2c.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/staging/sm750fb/ddk750_hwi2c.c b/drivers/staging/sm750fb/ddk750_hwi2c.c > index 68716ef7cb06..ddb7a6dc265a 100644 > --- a/drivers/staging/sm750fb/ddk750_hwi2c.c > +++ b/drivers/staging/sm750fb/ddk750_hwi2c.c > @@ -49,8 +49,7 @@ void sm750_hw_i2c_close(void) > > /* Set GPIO 30 & 31 back as GPIO pins */ > value = peek32(GPIO_MUX); > - value &= ~GPIO_MUX_30; > - value &= ~GPIO_MUX_31; > + value &= ~(GPIO_MUX_30 | GPIO_MUX_31); Why does this matter? thanks, greg k-h
Back to top | Article view | linux.kernel
csiph-web