[PATCH 1/2] thermal: Add support for thermal sensor for Kirkwood SoC
From: Nobuhiro Iwamatsu <hidden>
Date: 2012-12-14 21:24:00
Also in:
linux-pm
Hi, On Sat, Dec 8, 2012 at 9:07 AM, Thomas Petazzoni [off-list ref] wrote:
Hello, On Sat, 8 Dec 2012 08:15:50 +0900, Nobuhiro Iwamatsu wrote:quoted
+config KIRKWOOD_THERMAL + tristate "Temperature sensor on Marvel Kirkwood"Marvell
Thanks, I will fix.
quoted
+ /* Valid check */ + if (!(reg >> THERMAL_VALID_OFFSET) & THERMAL_VALID_MASK) { + dev_info(&thermal->device, "Reading temperature is not valid\n");"Temperature read is not valid" maybe? An native english speaker could say.
I will fix.
quoted
+ thermal_dev + = devm_kzalloc(&pdev->dev, sizeof(*thermal_dev), GFP_KERNEL);I think the usual coding style is to have the = on the first line.quoted
+static int kirkwood_thermal_exit(struct platform_device *pdev) +{ + struct thermal_zone_device *kirkwood_thermal + = platform_get_drvdata(pdev);Ditto.
I will fix.
quoted
+static const struct of_device_id kirkwood_thermal_id_table[] = { + { .compatible = "marvel,thermal-kirkwood" },marvel -> marvell
Thanks, I will fix.
Also, I think it should be marvell,kirkwood-thermal, since most other DT compatible strings that we have for Marvell SoCs are marvell,<soc>-<function>. Also, the Device Tree binding documentation is missing (even though it is admittedly going to be a very short documentation).
OK, I forgot this. I will write documentation.
Thanks! Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Best regards,
Nobuhiro
--
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org}
GPG ID: 40AD1FA6