ASoC: cs35l32: use true/false returns for bool functions
Subsystems (3)
PATCH 1/3 ASoC: cs35l32: use true/false returns for bool functions
Return true or false instead of 1 and 0
Reported-by Fengguang Wu <[email protected]>
Signed-off-by Brian Austin <[email protected]>
--- sound/soc/codecs/cs35l32.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/cs35l32.c +4 -4
@@ -121,9 +121,9 @@ static bool cs35l32_volatile_register(struct device *dev, unsigned int reg)case CS35L32_INT_STATUS_2 :case CS35L32_INT_STATUS_3 :case CS35L32_LED_STATUS : -return 1 ; +return true;default : -return 0 ; +return false; } }
@@ -134,9 +134,9 @@ static bool cs35l32_precious_register(struct device *dev, unsigned int reg)case CS35L32_INT_STATUS_2 :case CS35L32_INT_STATUS_3 :case CS35L32_LED_STATUS : -return 1 ; +return true;default : -return 0 ; +return false; } }
Signature · 1 line
1.7.9.5
PATCH 2/3 ASoC: cs42l52: use true/false returns for bool functions
Return true or false instead of 1 and 0
Signed-off-by Brian Austin <[email protected]>
--- sound/soc/codecs/cs42l52.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/cs42l52.c +2 -2
@@ -176,9 +176,9 @@ static bool cs42l52_volatile_register(struct device *dev, unsigned int reg)case CS42L52_BATT_LEVEL :case CS42L52_SPK_STATUS :case CS42L52_CHARGE_PUMP : -return 1 ; +return true;default : -return 0 ; +return false; } }
Signature · 1 line
1.7.9.5
PATCH 3/3 ASoC: cs42l56: use true/false returns for bool functions
In reply to Brian AustinReturn true or false instead of 1 and 0
Signed-off-by Brian Austin <[email protected]>
--- sound/soc/codecs/cs42l56.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/cs42l56.c +2 -2
@@ -171,9 +171,9 @@ static bool cs42l56_volatile_register(struct device *dev, unsigned int reg) {switch (reg) {case CS42L56_INT_STATUS : -return 1 ; +return true;default : -return 0 ; +return false; } }
Signature · 1 line
1.7.9.5
Quoted 1 line · Brian Austin
Return true or false instead of 1 and 0
Applied all, thanks.