Thread (2 messages) 2 messages, 2 authors, 2013-02-20

Re: [RFC PATCH 6/9] hwmon: (lm90) Register to the thermal framework

From: Wei Ni <hidden>
Date: 2013-02-20 10:40:25
Also in: linux-arm-kernel, linux-pm, linux-tegra

On 02/20/2013 07:18 AM, Stephen Warren wrote:
On 02/18/2013 04:30 AM, Wei Ni wrote:
quoted
Register the remote sensor to the thermal framework.
It can support to show the temperature and read/write threshold.
quoted
 arch/arm/boot/dts/tegra30-cardhu.dtsi |    1 +
 drivers/hwmon/lm90.c                  |  182 ++++++++++++++++++++++++++++++++-
There shouldn't be any need to edit both those files in the same patch.
This patch is making multiple separate logical changes, which should be
separate patches.
I will follow Matthew's suggestion to split this serial patch into 3
separate sets.
quoted
diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm/boot/dts/tegra30-cardhu.dtsi
quoted
+			#sensor-cells = <1>;
Again, in order to allow that, you need some documentation in
Documentation/devicetree/bindings/. Related to that, you need to Cc the
devicetree maintainers on at least the patches that add that documentation.
Ok, I will do it.
quoted
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
quoted
@@ -1576,12 +1728,38 @@ static int lm90_probe(struct i2c_client *client,
...
quoted
+	np_args.np = dev->of_node;
+	np_args.index = 0;
As I mentioned before, that'd be better replaced by an explicit of_xlate
function.
Yes, I will try to use this func.
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help