Skip to content

Commit c5d5b55

Browse files
cristiccbroonie
authored andcommitted
regulator: fan53555: Fix wrong TCS_SLEW_MASK
The support for TCS4525 regulator has been introduced with a wrong ramp-rate mask, which has been defined as a logical expression instead of a bit shift operation. For clarity, fix it using GENMASK() macro. Fixes: 914df8f ("regulator: fan53555: Add TCS4525 DCDC support") Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Link: https://lore.kernel.org/r/20230406171806.948290-4-cristian.ciocaltea@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 4fb9a50 commit c5d5b55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/regulator/fan53555.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#define TCS_VSEL1_MODE (1 << 6)
6262

6363
#define TCS_SLEW_SHIFT 3
64-
#define TCS_SLEW_MASK (0x3 < 3)
64+
#define TCS_SLEW_MASK GENMASK(4, 3)
6565

6666
enum fan53555_vendor {
6767
FAN53526_VENDOR_FAIRCHILD = 0,

0 commit comments

Comments
 (0)