Hello Esteban, some comments inline. On 12/19, Esteban Blanc wrote: > This adds a new driver for the Analog Devices INC. AD4030-24 ADC. > > The driver implements basic support for the AD4030-24 1 channel > differential ADC with hardware gain and offset control. > > Signed-off-by: Esteban Blanc <eblanc@xxxxxxxxxxxx> > --- [...] > + > +static int ad4030_spi_read(void *context, const void *reg, size_t reg_size, > + void *val, size_t val_size) > +{ > + int ret; > + struct ad4030_state *st = context; > + struct spi_transfer xfer = { > + .tx_buf = st->tx_data, > + .rx_buf = st->rx_data.raw, > + .len = reg_size + val_size, > + .speed_hz = AD4030_SPI_MAX_REG_XFER_SPEED, Is speed_hz really needed? What happens if the controller can't clock at 80MHz? > + }; > + > + if (xfer.len > ARRAY_SIZE(st->tx_data) || > + xfer.len > ARRAY_SIZE(st->rx_data.raw)) > + return -EINVAL; Would it make sense to bring register configuration mode commands into the regmap calls? I mean, to do the ad4030_enter_config_mode() transfer here and the ad4030_exit_config_mode() at the end of this function.