]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/pinctrl/sh-pfc/pfc-sh7723.c
sh-pfc: Replace first_gpio and last_gpio with nr_gpios
[mirror_ubuntu-artful-kernel.git] / drivers / pinctrl / sh-pfc / pfc-sh7723.c
index 49fd5c82e3cfe8e732c1296cc690e035e9fc4d9a..f31aa4f6b165d1ac349100732fa671b737df43fd 100644 (file)
@@ -1891,10 +1891,9 @@ struct sh_pfc_soc_info sh7723_pinmux_info = {
        .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END },
        .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
 
-       .first_gpio = GPIO_PTA7,
-       .last_gpio = GPIO_FN_IDEA0,
-
        .gpios = pinmux_gpios,
+       .nr_gpios = ARRAY_SIZE(pinmux_gpios),
+
        .cfg_regs = pinmux_config_regs,
        .data_regs = pinmux_data_regs,