regulator: axp20x: Simplify axp20x_is_polyphase_slave implementation
authorAxel Lin <axel.lin@ingics.com>
Sun, 15 Oct 2017 09:03:12 +0000 (17:03 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 18 Oct 2017 10:26:49 +0000 (11:26 +0100)
commitad92ceaf35822ebc2643d65ebba92d6dff18ae33
treed97b83836bde19e9283e53eadac586a92ca1ee95
parentd81851c1764b26b46670c0b3bd6701308ddaab98
regulator: axp20x: Simplify axp20x_is_polyphase_slave implementation

The code to handle AXP803_ID and AXP813_ID cases are exactly the same.
Make the switch-case fall through to avoid duplicate code.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c