G/C mcpgpio_softc::sc_phandle; nothing is using it.
This commit is contained in:
parent
e2da7dc983
commit
aa7530e36b
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: mcp23xxxgpio_i2c.c,v 1.1 2022/01/17 16:31:23 thorpej Exp $ */
|
/* $NetBSD: mcp23xxxgpio_i2c.c,v 1.2 2022/01/17 19:36:54 thorpej Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2022 The NetBSD Foundation, Inc.
|
* Copyright (c) 2022 The NetBSD Foundation, Inc.
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: mcp23xxxgpio_i2c.c,v 1.1 2022/01/17 16:31:23 thorpej Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: mcp23xxxgpio_i2c.c,v 1.2 2022/01/17 19:36:54 thorpej Exp $");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Driver for Microchip serial I/O expanders:
|
* Driver for Microchip serial I/O expanders:
|
||||||
|
@ -163,7 +163,6 @@ mcpgpio_i2c_attach(device_t parent, device_t self, void *aux)
|
||||||
sc->sc_dev = self;
|
sc->sc_dev = self;
|
||||||
sc->sc_variant = dce->data;
|
sc->sc_variant = dce->data;
|
||||||
sc->sc_iocon = IOCON_SEQOP;
|
sc->sc_iocon = IOCON_SEQOP;
|
||||||
sc->sc_phandle = ia->ia_cookie;
|
|
||||||
sc->sc_accessops = &mcpgpio_i2c_accessops;
|
sc->sc_accessops = &mcpgpio_i2c_accessops;
|
||||||
|
|
||||||
aprint_naive("\n");
|
aprint_naive("\n");
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: mcp23xxxgpiovar.h,v 1.1 2022/01/17 16:31:23 thorpej Exp $ */
|
/* $NetBSD: mcp23xxxgpiovar.h,v 1.2 2022/01/17 19:36:54 thorpej Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2014, 2022 The NetBSD Foundation, Inc.
|
* Copyright (c) 2014, 2022 The NetBSD Foundation, Inc.
|
||||||
|
@ -78,7 +78,6 @@ struct mcpgpio_softc {
|
||||||
struct gpio_chipset_tag sc_gpio_gc;
|
struct gpio_chipset_tag sc_gpio_gc;
|
||||||
gpio_pin_t *sc_gpio_pins;
|
gpio_pin_t *sc_gpio_pins;
|
||||||
unsigned int sc_npins;
|
unsigned int sc_npins;
|
||||||
int sc_phandle;
|
|
||||||
uint8_t sc_iocon; /* I/O configuration */
|
uint8_t sc_iocon; /* I/O configuration */
|
||||||
|
|
||||||
/* Bus-specific access functions. */
|
/* Bus-specific access functions. */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: mcp23xxxgpio_spi.c,v 1.1 2022/01/17 16:31:23 thorpej Exp $ */
|
/* $NetBSD: mcp23xxxgpio_spi.c,v 1.2 2022/01/17 19:36:54 thorpej Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2014, 2022 The NetBSD Foundation, Inc.
|
* Copyright (c) 2014, 2022 The NetBSD Foundation, Inc.
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: mcp23xxxgpio_spi.c,v 1.1 2022/01/17 16:31:23 thorpej Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: mcp23xxxgpio_spi.c,v 1.2 2022/01/17 19:36:54 thorpej Exp $");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Driver for Microchip serial I/O expanders:
|
* Driver for Microchip serial I/O expanders:
|
||||||
|
@ -202,7 +202,6 @@ mcpgpio_spi_attach(device_t parent, device_t self, void *aux)
|
||||||
sc->sc_variant = &mcp23s17; /* XXX */
|
sc->sc_variant = &mcp23s17; /* XXX */
|
||||||
sc->sc_iocon = IOCON_HAEN | IOCON_SEQOP;
|
sc->sc_iocon = IOCON_HAEN | IOCON_SEQOP;
|
||||||
sc->sc_npins = MCP23x17_GPIO_NPINS;
|
sc->sc_npins = MCP23x17_GPIO_NPINS;
|
||||||
sc->sc_phandle = -1;
|
|
||||||
sc->sc_accessops = &mcpgpio_spi_accessops;
|
sc->sc_accessops = &mcpgpio_spi_accessops;
|
||||||
|
|
||||||
aprint_naive("\n");
|
aprint_naive("\n");
|
||||||
|
|
Loading…
Reference in New Issue