Home
last modified time | relevance | path

Searched refs:max3191x (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/gpio/
Dgpio-max3191x.c119 static unsigned int max3191x_wordlen(struct max3191x_chip *max3191x) in max3191x_wordlen() argument
121 return max3191x->mode == STATUS_BYTE_ENABLED ? 2 : 1; in max3191x_wordlen()
124 static int max3191x_readout_locked(struct max3191x_chip *max3191x) in max3191x_readout_locked() argument
126 struct device *dev = max3191x->gpio.parent; in max3191x_readout_locked()
130 val = spi_sync(spi, &max3191x->mesg); in max3191x_readout_locked()
136 for (i = 0; i < max3191x->nchips; i++) { in max3191x_readout_locked()
137 if (max3191x->mode == STATUS_BYTE_ENABLED) { in max3191x_readout_locked()
138 u8 in = ((u8 *)max3191x->xfer.rx_buf)[i * 2]; in max3191x_readout_locked()
139 u8 status = ((u8 *)max3191x->xfer.rx_buf)[i * 2 + 1]; in max3191x_readout_locked()
142 __assign_bit(i, max3191x->crc_error, val); in max3191x_readout_locked()
[all …]
DMakefile97 obj-$(CONFIG_GPIO_MAX3191X) += gpio-max3191x.o