[PATCH 02/14] iio: adc: ti-tsc2046: remove bits_per_word = 8

David Lechner posted 14 patches 7 months, 2 weeks ago
[PATCH 02/14] iio: adc: ti-tsc2046: remove bits_per_word = 8
Posted by David Lechner 7 months, 2 weeks ago
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>
---
 drivers/iio/adc/ti-tsc2046.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/iio/adc/ti-tsc2046.c b/drivers/iio/adc/ti-tsc2046.c
index 84a9a5e66526555b02497b105660c4822378483b..c2d2aada6772aae6fc8d01c3878d6e869d413bc7 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);

-- 
2.43.0
Re: [PATCH 02/14] iio: adc: ti-tsc2046: remove bits_per_word = 8
Posted by Oleksij Rempel 7 months, 2 weeks ago
On Mon, May 05, 2025 at 02:20:29PM -0500, David Lechner wrote:
> 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>

Thank you!

Best Regards,
Oleksij
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |