Skip to content

Commit 882bd6d

Browse files
Florin Leotescugroeck
authored andcommitted
hwmon: emc2305: Add OF support
Introduce OF support for Microchip emc2305 pwm fan controller. Signed-off-by: Florin Leotescu <florin.leotescu@nxp.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20250321143308.4008623-3-florin.leotescu@oss.nxp.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent a25633a commit 882bd6d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/hwmon/emc2305.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,16 @@ static void emc2305_remove(struct i2c_client *client)
607607
emc2305_unset_tz(dev);
608608
}
609609

610+
static const struct of_device_id of_emc2305_match_table[] = {
611+
{ .compatible = "microchip,emc2305", },
612+
{},
613+
};
614+
MODULE_DEVICE_TABLE(of, of_emc2305_match_table);
615+
610616
static struct i2c_driver emc2305_driver = {
611617
.driver = {
612618
.name = "emc2305",
619+
.of_match_table = of_emc2305_match_table,
613620
},
614621
.probe = emc2305_probe,
615622
.remove = emc2305_remove,

0 commit comments

Comments
 (0)