]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: sysfs: constify gpio class
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 14 Oct 2024 12:18:30 +0000 (14:18 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 17 Oct 2024 06:53:02 +0000 (08:53 +0200)
commitb6f7aeaf1bfd8d78d55868f0857e397b06a01777
treeaa2ae7c5ef3bdf22f0e8a16ba607980005a39428
parent476f18c0895df7b281eb84b3e687e6101c844338
gpio: sysfs: constify gpio class

All class functions used here take a const pointer to the class
structure. We can constify gpio_class.

While at it: remove a stray newline and use a tab in the struct
definition for consistency with the line above.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20241014121831.106532-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-sysfs.c