]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit881dcfab1d93d84876ac5540a6b0f4c7485613c5
tree1539f9ff04da974c77bb3d6831181fe6bf322805
parentc2fce9ca727900ec40dc075b7a44e325e3386687
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