projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caa505f
)
i2c: octeon: Use booleon values for booleon variables
author
Jan Glauber
<jglauber@cavium.com>
Wed, 24 Aug 2016 21:25:48 +0000
(23:25 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Thu, 25 Aug 2016 22:42:00 +0000
(
00:42
+0200)
Initialize booleon values with true instead of 1.
Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-octeon-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-octeon-core.c
b/drivers/i2c/busses/i2c-octeon-core.c
index a327a5fa453e5ac42202580ba24066dc0c6646cf..f45ea5eef513db91bd178cb156816e6106ff153e 100644
(file)
--- a/
drivers/i2c/busses/i2c-octeon-core.c
+++ b/
drivers/i2c/busses/i2c-octeon-core.c
@@
-63,7
+63,7
@@
static bool octeon_i2c_test_ready(struct octeon_i2c *i2c, bool *first)
static int octeon_i2c_wait(struct octeon_i2c *i2c)
{
long time_left;
- bool first =
1
;
+ bool first =
true
;
/*
* Some chip revisions don't assert the irq in the interrupt
@@
-176,7
+176,7
@@
static void octeon_i2c_hlc_disable(struct octeon_i2c *i2c)
*/
static int octeon_i2c_hlc_wait(struct octeon_i2c *i2c)
{
- bool first =
1
;
+ bool first =
true
;
int time_left;
/*