From: David Lechner Date: Mon, 5 May 2025 19:20:29 +0000 (-0500) Subject: iio: adc: ti-tsc2046: remove bits_per_word = 8 X-Git-Tag: v6.16-rc1~30^2~4^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0115e17e9fded16017ffde8207252fc0f21ddf8d;p=thirdparty%2Fkernel%2Fstable.git iio: adc: ti-tsc2046: remove bits_per_word = 8 Remove setting bits_per_word = 8 from the ti-tsc2046 driver. This is the default value for SPI transfers, so it is not necessary to explicitly set it. Signed-off-by: David Lechner Reviewed-by: Oleksij Rempel Reviewed-by: Nuno Sá Link: https://patch.msgid.link/20250505-iio-remove-bits_per_word-8-v1-2-341f85fcfe11@baylibre.com Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/ti-tsc2046.c b/drivers/iio/adc/ti-tsc2046.c index 84a9a5e665265..c2d2aada6772a 100644 --- a/drivers/iio/adc/ti-tsc2046.c +++ b/drivers/iio/adc/ti-tsc2046.c @@ -761,7 +761,6 @@ static int tsc2046_adc_probe(struct spi_device *spi) if (!dcfg) return -EINVAL; - spi->bits_per_word = 8; spi->mode &= ~SPI_MODE_X_MASK; spi->mode |= SPI_MODE_0; ret = spi_setup(spi);