projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f776ef
)
ASoC: rt5645: fix coccinelle warnings
author
Oder Chiou
<oder_chiou@realtek.com>
Thu, 8 May 2014 07:42:37 +0000
(15:42 +0800)
committer
Mark Brown
<broonie@linaro.org>
Thu, 8 May 2014 08:02:41 +0000
(09:02 +0100)
Return statements in functions returning bool should use
true/false instead of 1/0.
Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/rt5645.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/rt5645.c
b/sound/soc/codecs/rt5645.c
index 30410eb5b982e1ed99e3743a9d28077419950751..68923eca7d9c54a593beaf36ba503c156a464efc 100644
(file)
--- a/
sound/soc/codecs/rt5645.c
+++ b/
sound/soc/codecs/rt5645.c
@@
-242,9
+242,9
@@
static bool rt5645_volatile_register(struct device *dev, unsigned int reg)
case RT5645_VENDOR_ID:
case RT5645_VENDOR_ID1:
case RT5645_VENDOR_ID2:
- return
1
;
+ return
true
;
default:
- return
0
;
+ return
false
;
}
}
@@
-391,9
+391,9
@@
static bool rt5645_readable_register(struct device *dev, unsigned int reg)
case RT5645_VENDOR_ID:
case RT5645_VENDOR_ID1:
case RT5645_VENDOR_ID2:
- return
1
;
+ return
true
;
default:
- return
0
;
+ return
false
;
}
}