Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: ma35: Convert to common field_{get,prep}() helpers

Drop the driver-specific field_get() and field_prep() macros, in favor
of the globally available variants from <linux/bitfield.h>.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>

authored by

Geert Uytterhoeven and committed by
Yury Norov (NVIDIA)
bb0e7fda 1fe1c28a

-6
-6
drivers/pinctrl/nuvoton/pinctrl-ma35.c
··· 81 81 #define MVOLT_1800 0 82 82 #define MVOLT_3300 1 83 83 84 - /* Non-constant mask variant of FIELD_GET() and FIELD_PREP() */ 85 - #undef field_get 86 - #define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1)) 87 - #undef field_prep 88 - #define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask)) 89 - 90 84 static const char * const gpio_group_name[] = { 91 85 "gpioa", "gpiob", "gpioc", "gpiod", "gpioe", "gpiof", "gpiog", 92 86 "gpioh", "gpioi", "gpioj", "gpiok", "gpiol", "gpiom", "gpion",