gpiolib: sysfs: Simplify edge handling in the code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 9 Feb 2022 11:31:17 +0000 (13:31 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 16 Feb 2022 15:03:08 +0000 (16:03 +0100)
commit667630edb5bacd05ee423cbbb53f236d0122ea34
tree2a6bce913770d22647e6d8ee1f6bccb31cc1c037
parent6b3c1791ae2fde75311b414f38d50e0125374a4e
gpiolib: sysfs: Simplify edge handling in the code

Instead of keeping specific data structure for IRQ trigger types, switch
to array of trigger names and use index as a type.

The code is in maintenance mode and that array is not going to grow.

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