Searched refs:max3191x (Results 1 – 2 of 2) sorted by relevance
121 static unsigned int max3191x_wordlen(struct max3191x_chip *max3191x) in max3191x_wordlen() argument123 return max3191x->mode == STATUS_BYTE_ENABLED ? 2 : 1; in max3191x_wordlen()126 static int max3191x_readout_locked(struct max3191x_chip *max3191x) in max3191x_readout_locked() argument128 struct device *dev = max3191x->gpio.parent; in max3191x_readout_locked()132 val = spi_sync(spi, &max3191x->mesg); in max3191x_readout_locked()138 for (i = 0; i < max3191x->nchips; i++) { in max3191x_readout_locked()139 if (max3191x->mode == STATUS_BYTE_ENABLED) { in max3191x_readout_locked()140 u8 in = ((u8 *)max3191x->xfer.rx_buf)[i * 2]; in max3191x_readout_locked()141 u8 status = ((u8 *)max3191x->xfer.rx_buf)[i * 2 + 1]; in max3191x_readout_locked()144 __assign_bit(i, max3191x->crc_error, val); in max3191x_readout_locked()[all …]
75 obj-$(CONFIG_GPIO_MAX3191X) += gpio-max3191x.o