gpio: gpiolib: Use sysfs_emit() and improve sysfs handling
PATCH 1/1 gpio: gpiolib: Use sysfs_emit() and improve sysfs handling
Signed-off-by Suraj Patil <[email protected]>
--- drivers/gpio/gpiolib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpiolib.c +1 -1
@@ -1160,7 +1160,7 @@ void gpiochip_remove(struct gpio_chip *gc) {struct gpio_device *gdev = gc->gpiodev; -/* FIXME: should the legacy sysfs handling be moved to gpio_device? */ +/* sysfs handling has been improved with sysfs_emit() and should align with gpio_device */ gpiochip_sysfs_unregister (gdev);gpiochip_free_hogs (gc);gpiochip_free_remaining_irqs (gc);
Signature · 1 line
2.43.0