]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: Factor out regmap config generation into common header
authorMarek Vasut <marex@denx.de>
Tue, 25 Jun 2019 23:43:47 +0000 (01:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jun 2019 18:00:32 +0000 (11:00 -0700)
commit55a32216b7e2afaadf44e1aa3c1b8fb7ae14f69f
tree9f6e925bd577c274be93c1eab95b0d5d5197b65e
parent5b433192caeba82784854cd8697c3df5de29eb43
net: dsa: microchip: Factor out regmap config generation into common header

The regmap config tables are rather similar for various generations of
the KSZ8xxx/KSZ9xxx switches. Introduce a macro which allows generating
those tables without duplication. Note that $regalign parameter is not
used right now, but will be used in KSZ87xx series switches.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Tristram Ha <Tristram.Ha@microchip.com>
Cc: Woojung Huh <Woojung.Huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz9477_spi.c
drivers/net/dsa/microchip/ksz_common.h