]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'Modernize-mdio-gpio'
authorDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 19:59:12 +0000 (15:59 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 19:59:12 +0000 (15:59 -0400)
commit9eb8bec9c77e83b3c2bc290a2fa99c1c00955dd8
tree8ce7e96850d9073368e72c8f89133ceb90931bf1
parent34c2d3a3715dbf08bf5493915504040bf6a652ae
parent6f64f8ce9c6a468bc01141c0147dee69788324df
Merge branch 'Modernize-mdio-gpio'

Andrew Lunn says:

====================
Modernize mdio-gpio

This patchset is inspired by a previous version by Linus Walleij

It reworks the mdio-gpio code to make use of gpio descriptors instead
of gpio numbers. However compared to the previous version, it retains
support for platform devices. It does however remove the platform_data
header file. The needed GPIOs are now passed by making use of a gpiod
lookup table. e.g:

static struct gpiod_lookup_table zii_scu_mdio_gpiod_table = {
.dev_id = "mdio-gpio.0",
.table = {
GPIO_LOOKUP_IDX("gpio_ich", 17, NULL, MDIO_GPIO_MDC,
GPIO_ACTIVE_HIGH),
GPIO_LOOKUP_IDX("gpio_ich", 2, NULL, MDIO_GPIO_MDIO,
GPIO_ACTIVE_HIGH),
GPIO_LOOKUP_IDX("gpio_ich", 21, NULL, MDIO_GPIO_MDO,
GPIO_ACTIVE_LOW),
},
};
====================

Signed-off-by: David S. Miller <davem@davemloft.net>