git: 22127c7c1b9c - main - tca6416: remove write only sc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Apr 2022 04:32:19 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=22127c7c1b9c0f8feb73f13a829b8b757f2274eb
commit 22127c7c1b9c0f8feb73f13a829b8b757f2274eb
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 01:34:59 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:29:36 +0000
tca6416: remove write only sc
Sponsored by: Netflix
---
sys/dev/iicbus/gpio/tca6416.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/sys/dev/iicbus/gpio/tca6416.c b/sys/dev/iicbus/gpio/tca6416.c
index 9429a62d6954..8007ae98f0c9 100644
--- a/sys/dev/iicbus/gpio/tca6416.c
+++ b/sys/dev/iicbus/gpio/tca6416.c
@@ -273,12 +273,9 @@ tca6416_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps)
static int
tca6416_pin_getflags(device_t dev, uint32_t pin, uint32_t *pflags)
{
- struct tca6416_softc *sc;
int error;
uint8_t reg_addr, reg_bit, val;
- sc = device_get_softc(dev);
-
if (pin >= NUM_PINS || pflags == NULL)
return (EINVAL);
@@ -365,12 +362,9 @@ tca6416_pin_getname(device_t dev, uint32_t pin, char *name)
static int
tca6416_pin_get(device_t dev, uint32_t pin, unsigned int *pval)
{
- struct tca6416_softc *sc;
uint8_t reg_bit, reg_addr, reg_pvalue;
int error;
- sc = device_get_softc(dev);
-
if (pin >= NUM_PINS || pval == NULL)
return (EINVAL);