staging: iio: resolver: ad2s1210: remove call to spi_setup()
authorDavid Lechner <dlechner@baylibre.com>
Fri, 29 Sep 2023 17:23:08 +0000 (12:23 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 30 Sep 2023 14:35:05 +0000 (15:35 +0100)
This removes the call to spi_setup() in the ad2s1210 driver.

Setting MODE_3 was incorrect. It should be MODE_1 but we can let the
device tree select this and avoid the need to call spi_setup().

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20230929-ad2s1210-mainline-v3-3-fa4364281745@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/resolver/ad2s1210.c

index 3f08b59f4e1963551fa4bd30ccf6912c848dd341..8fde08887f7f5e594e10b846ad3cd4e77fd124dd 100644 (file)
@@ -683,8 +683,6 @@ static int ad2s1210_probe(struct spi_device *spi)
                return ret;
 
        st->fclkin = spi->max_speed_hz;
-       spi->mode = SPI_MODE_3;
-       spi_setup(spi);
        ad2s1210_initial(st);
 
        return 0;