From: Guenter Roeck Date: Sat, 23 Nov 2013 19:03:20 +0000 (-0800) Subject: compal-laptop: Use devm_hwmon_device_register_with_groups X-Git-Tag: v3.14-rc1~54^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2be45f09bb0b37ba1f87f39fbb04886f94e3e58;p=pandora-kernel.git compal-laptop: Use devm_hwmon_device_register_with_groups Simplify the code and create hwmon attributes as well as hwmon device in one go. With the new hwmon API, hwmon attributes are now attached to the hwmon device. Therefore, split hwmon and device attributes into two separate groups. Platform attributes are still attached to the platform device. Also use devm_kzalloc to allocate local data structures for further simplification. Signed-off-by: Guenter Roeck Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed