]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit052c0afd792fa93d41e59240aa4ea101e3f0a357
tree767cf4f03199901863ba427937b3ff5bc7457550
parent97217e5a2a6d62802948ce4e4ac3f392867eb148
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