gpiolib: sysfs: Move sysfs_emit() calls outside of the mutex lock
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 9 Feb 2022 11:31:15 +0000 (13:31 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 16 Feb 2022 15:02:11 +0000 (16:02 +0100)
commite28747da771cbda2dac0e8d9487e875feb1b8fed
tree1539f9ff04da974c77bb3d6831181fe6bf322805
parent4398693a9e24bcab0b99ea219073917991d0792b
gpiolib: sysfs: Move sysfs_emit() calls outside of the mutex lock

In a few places we perform sysfs_emit() operations under mutex that
do not require any locking. Move them outside of the mutex locks.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpiolib-sysfs.c