]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (coretemp) Use sysfs_create_group to create sysfs attributes
authorGuenter Roeck <linux@roeck-us.net>
Sun, 16 Feb 2014 21:23:25 +0000 (13:23 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 3 Mar 2014 16:01:05 +0000 (08:01 -0800)
commitdd40cdd060662cdd9935968e9aaa034920736ddf
treeed0600bed361f523fd5cabdceef0f40e77d776fc
parent739bc1134999a1c7531a0ab4c1128762c9aa415d
hwmon: (coretemp) Use sysfs_create_group to create sysfs attributes

Instead of creating each attribute individually, use sysfs_create_group
to create all attributes for one core with a single call.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Tested-by: Jean Delvare <jdelvare@suse.de>
drivers/hwmon/coretemp.c