]> git.ipfire.org Git - thirdparty/linux.git/commit
power: supply: ltc4162l: Use GENMASK macro in bitmask operation
authorKim Seer Paller <kimseer.paller@analog.com>
Fri, 17 Jan 2025 02:43:07 +0000 (10:43 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 17 Jan 2025 21:31:16 +0000 (22:31 +0100)
commit92c71aa1a8942057e228c09d37f8513abbab5fea
tree6ccaea58b0d9b8685f92b2e3b5ae2b37ecc2c893
parent260d7c5e5392ac41c94152005d416172ba0a906d
power: supply: ltc4162l: Use GENMASK macro in bitmask operation

Replace the bitmask operation BIT(6) - 1 with GENMASK(5, 0) to make the
code clearer and readable.

Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Signed-off-by: Kim Seer Paller <kimseer.paller@analog.com>
Link: https://lore.kernel.org/r/20250117024307.4119-1-kimseer.paller@analog.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ltc4162-l-charger.c