diff options
| author | David S. Miller <davem@davemloft.net> | 2019-06-27 19:25:02 -0700 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-06-27 19:25:02 -0700 |
| commit | 702999ea377f622c5a1d877f8dafc17ce214e2d8 (patch) | |
| tree | d153ca78c45647491c8f39c033b5866c94870831 /drivers/net/dsa/microchip/ksz_common.h | |
| parent | d7ee287827ef107420871651963770f8705cb56e (diff) | |
| parent | ee353e4534435372f297c9f3e661f76d1e1f7b2b (diff) | |
| download | blackbird-op-linux-702999ea377f622c5a1d877f8dafc17ce214e2d8.tar.gz blackbird-op-linux-702999ea377f622c5a1d877f8dafc17ce214e2d8.zip | |
Merge branch 'net-dsa-microchip-Further-regmap-cleanups'
Marek Vasut says:
====================
net: dsa: microchip: Further regmap cleanups
This patchset cleans up KSZ9477 switch driver by replacing various
ad-hoc polling implementations and register RMW with regmap functions.
Each polling function is replaced separately to make it easier to review
and possibly bisect, but maybe the patches can be squashed.
====================
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.h')
| -rw-r--r-- | drivers/net/dsa/microchip/ksz_common.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.h b/drivers/net/dsa/microchip/ksz_common.h index 745318424f71..ee7096d8af07 100644 --- a/drivers/net/dsa/microchip/ksz_common.h +++ b/drivers/net/dsa/microchip/ksz_common.h @@ -119,20 +119,6 @@ static inline void ksz_pwrite32(struct ksz_device *dev, int port, int offset, ksz_write32(dev, dev->dev_ops->get_port_addr(port, offset), data); } -struct ksz_poll_ctx { - struct ksz_device *dev; - int port; - int offset; -}; - -static inline u32 ksz_pread32_poll(struct ksz_poll_ctx *ctx) -{ - u32 data; - - ksz_pread32(ctx->dev, ctx->port, ctx->offset, &data); - return data; -} - /* Regmap tables generation */ #define KSZ_SPI_OP_RD 3 #define KSZ_SPI_OP_WR 2 |

