Re: [PATCH 2/5] spi: spi-gpio: Rewrite to use GPIO descriptors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 1, 2018 at 3:37 PM, Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:

> +static struct gpiod_lookup_table cm_x300_spi_gpiod_table = {
> +       .dev_id         = "spi_gpio",
> +       .table          = {
> +               GPIO_LOOKUP("gpio-pxa", GPIO_LCD_SCL,
> +                           "gpio-sck", GPIO_ACTIVE_HIGH),
> +               GPIO_LOOKUP("gpio-pxa", GPIO_LCD_DIN,
> +                           "gpio-mosi", GPIO_ACTIVE_HIGH),
> +               GPIO_LOOKUP("gpio-pxa", GPIO_LCD_DOUT,
> +                           "gpio-miso", GPIO_ACTIVE_HIGH),
> +               GPIO_LOOKUP("gpio-pxa", GPIO_LCD_CS,
> +                           "cs", GPIO_ACTIVE_HIGH),
> +               { },
> +       },
> +};

...and why not to use new proper names from the beggining here?

-- 
With Best Regards,
Andy Shevchenko
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux