Re: [PATCH] hwmon: (pmbus/ltc4286) support building the sensor as a module
From: Guenter Roeck
Date: Fri Dec 04 2026 - 00:33:54 EST
On Fri, Dec 04, 2026 at 09:50:38AM +0800, Pengpeng Hou wrote:
> With PMBUS=m, Kbuild descends into pmbus/ for modules. An ltc4286 object
> placed in obj-y by the boolean sensor option is not part of that build.
>
> Make the sensor option tristate. Export its existing OF match table as
> well: an I2C client instantiated from a device tree can produce an OF
> modalias rather than an i2c modalias. Keep the existing I2C IDs for
> other clients.
>
> The issue was found by our static-analysis tool and manually reviewed.
>
> Fixes: 0c459759ca97 ("hwmon: (pmbus) Add ltc4286 driver")
> Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
Applied.
Thanks,
Guenter