]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
pc87360: Delete sysfs files on device deletion
authorJim Cromie <jim.cromie@gmail.com>
Sun, 24 Sep 2006 19:02:44 +0000 (21:02 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 28 Sep 2006 22:31:17 +0000 (15:31 -0700)
commit941c5c05cf38da5e12d70edc5d0fec5c24bce8b6
tree411baa7b0d43a314ceb58da2c4e551da7ae69161
parent44646c19b41e40d81f5e4863466914e8ce060cc0
pc87360: Delete sysfs files on device deletion

pc87360: Delete sysfs files on device deletion

Add 4 explicit attribute groups for the 5 sensor types:
voltage (in), therm, temp, and fan & pwm (together in one group).
Use sysfs_remove_group() to drop them, but keeps the existing
startup code, which calls device_create_file in loops.

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/pc87360.c