[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <1403787014-5858-1-git-send-email-ch.naveen@samsung.com>
Date: Thu, 26 Jun 2014 18:20:14 +0530
From: Naveen Krishna Chatradhi <ch.naveen@...sung.com>
To: lm-sensors@...sensors.org, linux-kernel@...r.kernel.org
Cc: naveenkrishna.ch@...il.com, linux@...ck-us.net, cpgs@...sung.com,
herbert@...dor.apana.org.au
Subject: [PATCH] hwmon: ntc_thermistor: correct the information printed during
probe
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@...sung.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists