hwmon: (lm90) Create most optional attributes with sysfs_create_group
authorGuenter Roeck <linux@roeck-us.net>
Fri, 4 Apr 2014 16:01:34 +0000 (18:01 +0200)
committerJean Delvare <jdelvare@suse.de>
Fri, 4 Apr 2014 16:01:34 +0000 (18:01 +0200)
commit742192f546ae710dd9bc8ddea2354636eac33b57
tree767cf4f03199901863ba427937b3ff5bc7457550
parent6cf0a91ebe11cee1df871619af4eb58c9af32666
hwmon: (lm90) Create most optional attributes with sysfs_create_group

With the new hwmon API, all attributes have to be created as groups.
Use sysfs_create_group and sysfs_remove_group instead of device_create_file
and device_remove_file to prepare for the new API.

Exception is the 'pec' attribute which will stay with the i2c device.

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