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)
commit1075305de47d8ebf909acd3d52cade78b9e8f160
treeed0600bed361f523fd5cabdceef0f40e77d776fc
parent4fa6cbb1b88b647a37776a50ee31e68c30732345
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