mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02: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:
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user