Thread (48 messages) 48 messages, 7 authors, 2017-09-06

[PATCH v2 16/18] hwmon: add support for sensors exported via ARM SCMI

From: Sudeep Holla <hidden>
Date: 2017-08-14 15:08:40
Also in: linux-devicetree, linux-hwmon, lkml

Hi Guenter,

On 07/08/17 13:25, Sudeep Holla wrote:

On 04/08/17 20:32, Guenter Roeck wrote:
quoted
On Fri, Aug 04, 2017 at 03:31:42PM +0100, Sudeep Holla wrote:
[...]
quoted
quoted
+	platform_set_drvdata(pdev, scmi_sensors);
+
+	hwdev = devm_hwmon_device_register_with_groups(dev, "scmi_sensors",
+						       scmi_sensors,
+						       scmi_sensors->groups);
Can you rework this to use devm_hwmon_device_register_with_info(),
and if possible let it handle the thermal registration ? 
Thanks for the pointers. I will check on the possibility and use it if
possible.
I had a look at devm_hwmon_device_register_with_info. It mostly deals
with constant structures where all the attributes are known at the boot
time. In case of SCMI, the firmware presents all the sensors and all the
information(type, scale, name/label, ...etc). Unless I create those
structures dynamically and typecast as const during probe, I can't get
it working. Are you OK with that ? If so, I can try making those changes.

-- 
Regards,
Sudeep
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help