Re: [PATCH] power: supply: bd99954: select REGMAP_I2C
From: Matti Vaittinen
Date: Tue Dec 01 2026 - 02:40:13 EST
On 30/11/2026 14:44, Pengpeng Hou wrote:
bd99954-charger.c initializes an I2C regmap using
devm_regmap_init_i2c(), but CHARGER_BD99954 does not select
REGMAP_I2C. The driver can therefore be enabled without the required
register-transport implementation and fail to build.
Select REGMAP_I2C so the backend is enabled at the linkage level
required by this consumer, rather than relying on another driver to
pull it in.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: 0902f8366491 ("power: supply: Support ROHM bd99954 charger")
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
Reviewed-by: Matti Vaittinen <mazziesaccount@xxxxxxxxx>
--
Matti Vaittinen
Linux kernel developer at ROHM Semiconductor
Oulu Finland
~~ When things go utterly wrong vim users can always type :help! ~~