gpiolib: Make use of assign_bit() API
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 4 Dec 2019 19:42:29 +0000 (21:42 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 13 Dec 2019 10:02:45 +0000 (11:02 +0100)
commit4fc5bfeb4b7d8306be6ed828df2cb5bdd14e3ed1
tree2c0cc9e2dfcdf4949304093a956d55f173e3c984
parentc16485ad8e023b2188d19f0ace3bc2af500884e1
gpiolib: Make use of assign_bit() API

We have for some time the assign_bit() API to replace open coded

if (foo)
set_bit(n, bar);
else
clear_bit(n, bar);

Use this API in GPIO library code.

No functional change intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20191204194229.64251-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c