* [PATCH] hwmon: ntc_thermistor: correct the information printed during probe
@ 2014-06-26 12:57 ` Naveen Krishna Chatradhi
0 siblings, 0 replies; 4+ messages in thread
From: Naveen Krishna Chatradhi @ 2014-06-26 12:50 UTC (permalink / raw)
To: lm-sensors, linux-kernel; +Cc: naveenkrishna.ch, linux, cpgs, herbert
Currently, dev_info() at the end of the probe says
"type:%s ". But, prints the pdev->name.
This patch uses "pdev_id->name" which prints the thermistor type.
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
---
drivers/hwmon/ntc_thermistor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c
index bdfbe91..ae66f42 100644
--- a/drivers/hwmon/ntc_thermistor.c
+++ b/drivers/hwmon/ntc_thermistor.c
@@ -512,7 +512,7 @@ static int ntc_thermistor_probe(struct platform_device *pdev)
}
dev_info(&pdev->dev, "Thermistor type: %s successfully probed.\n",
- pdev->name);
+ pdev_id->name);
return 0;
err_after_sysfs:
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [lm-sensors] [PATCH] hwmon: ntc_thermistor: correct the information printed during probe
@ 2014-06-26 12:57 ` Naveen Krishna Chatradhi
0 siblings, 0 replies; 4+ messages in thread
From: Naveen Krishna Chatradhi @ 2014-06-26 12:57 UTC (permalink / raw)
To: lm-sensors, linux-kernel; +Cc: naveenkrishna.ch, linux, cpgs, herbert
Currently, dev_info() at the end of the probe says
"type:%s ". But, prints the pdev->name.
This patch uses "pdev_id->name" which prints the thermistor type.
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
---
drivers/hwmon/ntc_thermistor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c
index bdfbe91..ae66f42 100644
--- a/drivers/hwmon/ntc_thermistor.c
+++ b/drivers/hwmon/ntc_thermistor.c
@@ -512,7 +512,7 @@ static int ntc_thermistor_probe(struct platform_device *pdev)
}
dev_info(&pdev->dev, "Thermistor type: %s successfully probed.\n",
- pdev->name);
+ pdev_id->name);
return 0;
err_after_sysfs:
--
1.7.9.5
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [lm-sensors] [PATCH] hwmon: ntc_thermistor: correct the information printed during probe
2014-06-26 12:57 ` [lm-sensors] " Naveen Krishna Chatradhi
@ 2014-06-26 13:46 ` Guenter Roeck
-1 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2014-06-26 13:46 UTC (permalink / raw)
To: Naveen Krishna Chatradhi, lm-sensors, linux-kernel
Cc: naveenkrishna.ch, cpgs, herbert
On 06/26/2014 05:50 AM, Naveen Krishna Chatradhi wrote:
> Currently, dev_info() at the end of the probe says
> "type:%s ". But, prints the pdev->name.
>
> This patch uses "pdev_id->name" which prints the thermistor type.
>
> Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Another good catch.
Applied, thanks.
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] hwmon: ntc_thermistor: correct the information printed during probe
@ 2014-06-26 13:46 ` Guenter Roeck
0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2014-06-26 13:46 UTC (permalink / raw)
To: Naveen Krishna Chatradhi, lm-sensors, linux-kernel
Cc: naveenkrishna.ch, cpgs, herbert
On 06/26/2014 05:50 AM, Naveen Krishna Chatradhi wrote:
> Currently, dev_info() at the end of the probe says
> "type:%s ". But, prints the pdev->name.
>
> This patch uses "pdev_id->name" which prints the thermistor type.
>
> Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Another good catch.
Applied, thanks.
Guenter
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-26 13:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-26 12:50 [PATCH] hwmon: ntc_thermistor: correct the information printed during probe Naveen Krishna Chatradhi
2014-06-26 12:57 ` [lm-sensors] " Naveen Krishna Chatradhi
2014-06-26 13:46 ` Guenter Roeck
2014-06-26 13:46 ` Guenter Roeck
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.