diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-06-06 14:01:38 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-08 01:36:38 +0200 |
commit | fedd89b1aafd6b2bf7c0b4009fd616a02484ae80 (patch) | |
tree | 50e89e70e885d2a42a5aa2c463ce0515b35db7f8 /drivers/regulator/pcap-regulator.c | |
parent | regulator: palmas: Clear PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK bits in palmas_s... (diff) | |
download | linux-fedd89b1aafd6b2bf7c0b4009fd616a02484ae80.tar.xz linux-fedd89b1aafd6b2bf7c0b4009fd616a02484ae80.zip |
regulator: palmas: Slightly code change for better readability
It's a little bit hard to read that the "else" case means id == PALMAS_REG_SMPS10.
if (id != PALMAS_REG_SMPS10){
do something for the cases id != PALMAS_REG_SMPS10;
} else {
do something for the case id == PALMAS_REG_SMPS10;
}
This patch changes above syntax to switch statement.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/pcap-regulator.c')
0 files changed, 0 insertions, 0 deletions