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)
commit255b59ad0db213d693028e52a4b69a98f2381db7
tree9f6e925bd577c274be93c1eab95b0d5d5197b65e
parentee394fea6f0671fc2bb7e63161129a5d73d8d6e1
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