mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
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 <dlechner@baylibre.com> Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Link: https://patch.msgid.link/20250505-iio-remove-bits_per_word-8-v1-2-341f85fcfe11@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
02b70dfe2f
commit
0115e17e9f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user