Skip to content

hwmon updates for x86 platform drivers

Guenter Roeck lkml lm-sensors platform-driver-x86 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5asus-wmi: Convert to use devm_hwmon_device_register_with_groupsdrivers/platform/x86/asus-wmi.c+11 -370 replies
2/5compal-laptop: Replace SENSOR_DEVICE_ATTR with DEVICE_ATTRdrivers/platform/x86/compal-laptop.c+33 -330 replies
3/5compal-laptop: Use devm_kzalloc to allocate local data structuredrivers/platform/x86/compal-laptop.c+2 -70 replies
4/5compal-laptop: Use devm_hwmon_device_register_with_groupsdrivers/platform/x86/compal-laptop.c+23 -290 replies
5/5eeepc-laptop: Convert to use devm_hwmon_device_register_with_groupsdrivers/platform/x86/eeepc-laptop.c+10 -420 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] hwmon updates for x86 platform drivers

Common changes:
- Convert to new hwmon API to simplify code and avoid race conditions due to late sysfs attribute registration.
With this change, hwmon sysfs attributes are now always attached to the hwmon device and no longer to its parent device (where this was the case).
- Replace SENSOR_DEVICE_ATTR with DEVICE_ATTR where appropriate, ie if the additional parameter provided by SENSOR_DEVICE_ATTR was not used.
- Use devm_kzalloc() instead of kzalloc() where appropriate to reduce code size and simplify error path.

All patches were compile tested only. Unfortunately, I don't have the necessary hardware to test on real systems.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors