projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a25633a
)
hwmon: emc2305: Add OF support
author
Florin Leotescu
<florin.leotescu@nxp.com>
Fri, 21 Mar 2025 14:33:07 +0000
(16:33 +0200)
committer
Guenter Roeck
<linux@roeck-us.net>
Sat, 22 Mar 2025 00:07:02 +0000
(17:07 -0700)
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>
drivers/hwmon/emc2305.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/emc2305.c
b/drivers/hwmon/emc2305.c
index 4d39fbd837693901d91a86289bb63334fa6c4a73..f8a4c76fcaddc0f5b66d722e97b2e9915d1e33ee 100644
(file)
--- a/
drivers/hwmon/emc2305.c
+++ b/
drivers/hwmon/emc2305.c
@@
-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,