tca6416: remove write only sc

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-04-04 19:34:59 -06:00
parent 8a46fc9a9b
commit 22127c7c1b

View File

@ -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);