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

Configure Feed

Select the types of activity you want to include in your feed.

pinctrl: mediatek: mt7988: use PINCTRL_PIN_FUNCTION()

We have a dedicated initializer macro for defining pin functions for
mediatek drivers so use it here.

Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Bartosz Golaszewski and committed by
Linus Walleij
7a24f1f5 17d4f2a9

+16 -26
+16 -26
drivers/pinctrl/mediatek/pinctrl-mt7988.c
··· 1465 1465 }; 1466 1466 1467 1467 static const struct function_desc mt7988_functions[] = { 1468 - { { "audio", mt7988_audio_groups, ARRAY_SIZE(mt7988_audio_groups) }, 1469 - NULL }, 1470 - { { "jtag", mt7988_jtag_groups, ARRAY_SIZE(mt7988_jtag_groups) }, 1471 - NULL }, 1472 - { { "int_usxgmii", mt7988_int_usxgmii_groups, 1473 - ARRAY_SIZE(mt7988_int_usxgmii_groups) }, 1474 - NULL }, 1475 - { { "pwm", mt7988_pwm_groups, ARRAY_SIZE(mt7988_pwm_groups) }, NULL }, 1476 - { { "dfd", mt7988_dfd_groups, ARRAY_SIZE(mt7988_dfd_groups) }, NULL }, 1477 - { { "i2c", mt7988_i2c_groups, ARRAY_SIZE(mt7988_i2c_groups) }, NULL }, 1478 - { { "eth", mt7988_ethernet_groups, ARRAY_SIZE(mt7988_ethernet_groups) }, 1479 - NULL }, 1480 - { { "pcie", mt7988_pcie_groups, ARRAY_SIZE(mt7988_pcie_groups) }, 1481 - NULL }, 1482 - { { "pmic", mt7988_pmic_groups, ARRAY_SIZE(mt7988_pmic_groups) }, 1483 - NULL }, 1484 - { { "watchdog", mt7988_wdt_groups, ARRAY_SIZE(mt7988_wdt_groups) }, 1485 - NULL }, 1486 - { { "spi", mt7988_spi_groups, ARRAY_SIZE(mt7988_spi_groups) }, NULL }, 1487 - { { "flash", mt7988_flash_groups, ARRAY_SIZE(mt7988_flash_groups) }, 1488 - NULL }, 1489 - { { "uart", mt7988_uart_groups, ARRAY_SIZE(mt7988_uart_groups) }, 1490 - NULL }, 1491 - { { "udi", mt7988_udi_groups, ARRAY_SIZE(mt7988_udi_groups) }, NULL }, 1492 - { { "usb", mt7988_usb_groups, ARRAY_SIZE(mt7988_usb_groups) }, NULL }, 1493 - { { "led", mt7988_led_groups, ARRAY_SIZE(mt7988_led_groups) }, NULL }, 1468 + PINCTRL_PIN_FUNCTION("audio", mt7988_audio), 1469 + PINCTRL_PIN_FUNCTION("jtag", mt7988_jtag), 1470 + PINCTRL_PIN_FUNCTION("int_usxgmii", mt7988_int_usxgmii), 1471 + PINCTRL_PIN_FUNCTION("pwm", mt7988_pwm), 1472 + PINCTRL_PIN_FUNCTION("dfd", mt7988_dfd), 1473 + PINCTRL_PIN_FUNCTION("i2c", mt7988_i2c), 1474 + PINCTRL_PIN_FUNCTION("eth", mt7988_ethernet), 1475 + PINCTRL_PIN_FUNCTION("pcie", mt7988_pcie), 1476 + PINCTRL_PIN_FUNCTION("pmic", mt7988_pmic), 1477 + PINCTRL_PIN_FUNCTION("watchdog", mt7988_wdt), 1478 + PINCTRL_PIN_FUNCTION("spi", mt7988_spi), 1479 + PINCTRL_PIN_FUNCTION("flash", mt7988_flash), 1480 + PINCTRL_PIN_FUNCTION("uart", mt7988_uart), 1481 + PINCTRL_PIN_FUNCTION("udi", mt7988_udi), 1482 + PINCTRL_PIN_FUNCTION("usb", mt7988_usb), 1483 + PINCTRL_PIN_FUNCTION("led", mt7988_led), 1494 1484 }; 1495 1485 1496 1486 static const struct mtk_eint_hw mt7988_eint_hw = {