]> git.baikalelectronics.ru Git - kernel.git/commit
acpi/battery: simplify procfs code
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Apr 2018 14:27:14 +0000 (16:27 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:24:30 +0000 (07:24 +0200)
commitd473a058e452d5565ff4e3658e07c1de05d302ad
treed5c6db8b192ab84e84b1918cd2752d42c35d682e
parent168db626b8d23575863a0d9ec333495a460d87ac
acpi/battery: simplify procfs code

Use remove_proc_subtree to remove the whole subtree on cleanup, and
unwind the registration loop into individual calls.  Switch to use
proc_create_seq where applicable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/battery.c