]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: fan53555: Fix wrong TCS_SLEW_MASK
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Thu, 6 Apr 2023 17:18:01 +0000 (20:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Apr 2023 12:28:32 +0000 (14:28 +0200)
commit519c96885eae4b405fb70c510a8226d86b90a775
tree7857972eb9cb5d28a54fa9b39099c5960adefe7d
parent49b9758d44d48e43cd5035576b221141d4c9e807
regulator: fan53555: Fix wrong TCS_SLEW_MASK

[ Upstream commit c5d5b55b3c1a314137a251efc1001dfd435c6242 ]

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: 914df8faa7d6 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/fan53555.c