mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 14:16:41 +07:00
ASoC: rt5645: fix coccinelle warnings
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>
This commit is contained in:
parent
0f776efd86
commit
71bfa9b4d6
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user