1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/device.h>
3 #include <linux/etherdevice.h>
4 #include <linux/gpio/driver.h>
7 * struct vsc73xx - VSC73xx state container
11 struct gpio_desc
*reset
;
12 struct dsa_switch
*ds
;
16 const struct vsc73xx_ops
*ops
;
21 int (*read
)(struct vsc73xx
*vsc
, u8 block
, u8 subblock
, u8 reg
,
23 int (*write
)(struct vsc73xx
*vsc
, u8 block
, u8 subblock
, u8 reg
,
27 int vsc73xx_is_addr_valid(u8 block
, u8 subblock
);
28 int vsc73xx_probe(struct vsc73xx
*vsc
);
29 int vsc73xx_remove(struct vsc73xx
*vsc
);