Commit 882bd6de authored by Florin Leotescu's avatar Florin Leotescu Committed by Guenter Roeck
Browse files

hwmon: emc2305: Add OF support



Introduce OF support for Microchip emc2305 pwm fan controller.

Signed-off-by: default avatarFlorin Leotescu <florin.leotescu@nxp.com>
Reviewed-by: default avatarFrank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250321143308.4008623-3-florin.leotescu@oss.nxp.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent a25633a0
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -607,9 +607,16 @@ static void emc2305_remove(struct i2c_client *client)
		emc2305_unset_tz(dev);
}

static const struct of_device_id of_emc2305_match_table[] = {
	{ .compatible = "microchip,emc2305", },
	{},
};
MODULE_DEVICE_TABLE(of, of_emc2305_match_table);

static struct i2c_driver emc2305_driver = {
	.driver = {
		.name = "emc2305",
		.of_match_table = of_emc2305_match_table,
	},
	.probe = emc2305_probe,
	.remove	  = emc2305_remove,