]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: gpio_decoder - replace custom loop by gpiod_get_array_value_cansleep()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 13 Nov 2025 15:44:44 +0000 (16:44 +0100)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 21 Jan 2026 20:22:43 +0000 (12:22 -0800)
commit4eec8772e4f501b719df5264fc345b37a9af3c68
treed26fbafa9bc727e83be91a8e3bc0840bf9c96d81
parent7cda46c30d17e6c7011fd7067f7b7638fa45934d
Input: gpio_decoder - replace custom loop by gpiod_get_array_value_cansleep()

There is a custom loop that repeats parts of gpiod_get_array_value_cansleep().
Use that in conjunction with bitmap API to make code shorter and easier to
follow.

With this done, add an upper check for amount of GPIOs given based on
the driver's code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20251113154616.3107676-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/gpio_decoder.c