* [PATCH 1/3] hwmon: lm92: Add devicetree support
@ 2015-07-22 16:30 Denis Carikli
0 siblings, 0 replies; 3+ messages in thread
From: Denis Carikli @ 2015-07-22 16:30 UTC (permalink / raw)
To: Jean Delvare, Rob Herring
Cc: Eric Bénard, lm-sensors-GZX6beZjE8VD60Wz+7aTrA,
devicetree-u79uwXL29TY76Z2rM5mHXA, Denis Carikli
Signed-off-by: Denis Carikli <denis-fO0SIAKYzcbQT0dZR+AlfA@public.gmane.org>
---
drivers/hwmon/lm92.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/hwmon/lm92.c b/drivers/hwmon/lm92.c
index cfaf70b..a1e10cd 100644
--- a/drivers/hwmon/lm92.c
+++ b/drivers/hwmon/lm92.c
@@ -44,6 +44,7 @@
#include <linux/hwmon-sysfs.h>
#include <linux/err.h>
#include <linux/mutex.h>
+#include <linux/of.h>
#include <linux/jiffies.h>
/*
@@ -386,6 +387,13 @@ static int lm92_probe(struct i2c_client *new_client,
* Module and driver stuff
*/
+#ifdef CONFIG_OF
+static const struct of_device_id lm92_of_match[] = {
+ { .compatible = "national,lm92", },
+};
+MODULE_DEVICE_TABLE(of, lm92_of_match);
+#endif
+
static const struct i2c_device_id lm92_id[] = {
{ "lm92", 0 },
/* max6635 could be added here */
@@ -397,6 +405,7 @@ static struct i2c_driver lm92_driver = {
.class = I2C_CLASS_HWMON,
.driver = {
.name = "lm92",
+ .of_match_table = of_match_ptr(lm92_of_match),
},
.probe = lm92_probe,
.id_table = lm92_id,
--
2.4.5
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 1/3] hwmon: lm92: Add devicetree support
@ 2015-07-23 9:29 Denis Carikli
[not found] ` <1437643748-11677-1-git-send-email-denis-fO0SIAKYzcbQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Denis Carikli @ 2015-07-23 9:29 UTC (permalink / raw)
To: Wolfram Sang
Cc: Eric Bénard, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-0h96xk9xTtrk1uMJSBkQmQ, Denis Carikli
Signed-off-by: Denis Carikli <denis-fO0SIAKYzcbQT0dZR+AlfA@public.gmane.org>
---
drivers/hwmon/lm92.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/hwmon/lm92.c b/drivers/hwmon/lm92.c
index cfaf70b..a1e10cd 100644
--- a/drivers/hwmon/lm92.c
+++ b/drivers/hwmon/lm92.c
@@ -44,6 +44,7 @@
#include <linux/hwmon-sysfs.h>
#include <linux/err.h>
#include <linux/mutex.h>
+#include <linux/of.h>
#include <linux/jiffies.h>
/*
@@ -386,6 +387,13 @@ static int lm92_probe(struct i2c_client *new_client,
* Module and driver stuff
*/
+#ifdef CONFIG_OF
+static const struct of_device_id lm92_of_match[] = {
+ { .compatible = "national,lm92", },
+};
+MODULE_DEVICE_TABLE(of, lm92_of_match);
+#endif
+
static const struct i2c_device_id lm92_id[] = {
{ "lm92", 0 },
/* max6635 could be added here */
@@ -397,6 +405,7 @@ static struct i2c_driver lm92_driver = {
.class = I2C_CLASS_HWMON,
.driver = {
.name = "lm92",
+ .of_match_table = of_match_ptr(lm92_of_match),
},
.probe = lm92_probe,
.id_table = lm92_id,
--
2.4.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/3] hwmon: lm92: Add devicetree support
[not found] ` <1437643748-11677-1-git-send-email-denis-fO0SIAKYzcbQT0dZR+AlfA@public.gmane.org>
@ 2015-07-23 9:41 ` Denis Carikli
0 siblings, 0 replies; 3+ messages in thread
From: Denis Carikli @ 2015-07-23 9:41 UTC (permalink / raw)
To: Wolfram Sang
Cc: Eric Bénard, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-0h96xk9xTtrk1uMJSBkQmQ
On 07/23/2015 11:29 AM, Denis Carikli wrote:
Sorry, I sent the wrong patch, ignore this mail.
Denis.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-23 9:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-23 9:29 [PATCH 1/3] hwmon: lm92: Add devicetree support Denis Carikli
[not found] ` <1437643748-11677-1-git-send-email-denis-fO0SIAKYzcbQT0dZR+AlfA@public.gmane.org>
2015-07-23 9:41 ` Denis Carikli
-- strict thread matches above, loose matches on Subject: below --
2015-07-22 16:30 Denis Carikli
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.