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

In a few places we perform kstrtox() 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