Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev G/C mcpgpio_softc::sc_phandle; nothing is using it.
details: https://anonhg.NetBSD.org/src/rev/785b867391e3
branches: trunk
changeset: 359700:785b867391e3
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Jan 17 19:36:54 2022 +0000
description:
G/C mcpgpio_softc::sc_phandle; nothing is using it.
diffstat:
sys/dev/i2c/mcp23xxxgpio_i2c.c | 5 ++---
sys/dev/ic/mcp23xxxgpiovar.h | 3 +--
sys/dev/spi/mcp23xxxgpio_spi.c | 5 ++---
3 files changed, 5 insertions(+), 8 deletions(-)
diffs (69 lines):
diff -r 63c99e18698f -r 785b867391e3 sys/dev/i2c/mcp23xxxgpio_i2c.c
--- a/sys/dev/i2c/mcp23xxxgpio_i2c.c Mon Jan 17 19:34:31 2022 +0000
+++ b/sys/dev/i2c/mcp23xxxgpio_i2c.c Mon Jan 17 19:36:54 2022 +0000
@@ -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.
@@ -30,7 +30,7 @@
*/
#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:
@@ -163,7 +163,6 @@
sc->sc_dev = self;
sc->sc_variant = dce->data;
sc->sc_iocon = IOCON_SEQOP;
- sc->sc_phandle = ia->ia_cookie;
sc->sc_accessops = &mcpgpio_i2c_accessops;
aprint_naive("\n");
diff -r 63c99e18698f -r 785b867391e3 sys/dev/ic/mcp23xxxgpiovar.h
--- a/sys/dev/ic/mcp23xxxgpiovar.h Mon Jan 17 19:34:31 2022 +0000
+++ b/sys/dev/ic/mcp23xxxgpiovar.h Mon Jan 17 19:36:54 2022 +0000
@@ -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.
@@ -78,7 +78,6 @@
struct gpio_chipset_tag sc_gpio_gc;
gpio_pin_t *sc_gpio_pins;
unsigned int sc_npins;
- int sc_phandle;
uint8_t sc_iocon; /* I/O configuration */
/* Bus-specific access functions. */
diff -r 63c99e18698f -r 785b867391e3 sys/dev/spi/mcp23xxxgpio_spi.c
--- a/sys/dev/spi/mcp23xxxgpio_spi.c Mon Jan 17 19:34:31 2022 +0000
+++ b/sys/dev/spi/mcp23xxxgpio_spi.c Mon Jan 17 19:36:54 2022 +0000
@@ -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.
@@ -30,7 +30,7 @@
*/
#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:
@@ -202,7 +202,6 @@
sc->sc_variant = &mcp23s17; /* XXX */
sc->sc_iocon = IOCON_HAEN | IOCON_SEQOP;
sc->sc_npins = MCP23x17_GPIO_NPINS;
- sc->sc_phandle = -1;
sc->sc_accessops = &mcpgpio_spi_accessops;
aprint_naive("\n");
Home |
Main Index |
Thread Index |
Old Index