[PATCH] staging: sm750fb: Combine set GPIO 30 & 31 into one statement
Lynn Lei
lynnl.jr at outlook.com
Tue Apr 25 15:53:02 UTC 2017
Combine two separate set GPIO(30 & 31) operations into one statement.
Signed-off-by: Lynn Lei <lynnl.jr at 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);
poke32(GPIO_MUX, value);
}
--
2.12.2
More information about the devel
mailing list