staging:iio:ad2s90: Remove spi setup that should be done via dt
authorMatheus Tavares <matheus.bernardino@usp.br>
Sat, 24 Nov 2018 00:23:07 +0000 (22:23 -0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 1 Dec 2018 15:35:25 +0000 (15:35 +0000)
commita996590baddca587d91d07e264d2649b84788b17
treeb275975a478fab17af659b0125ce820d1ee172ab
parentf116914dca8ac81ec4bee6d517f867ea37b0d320
staging:iio:ad2s90: Remove spi setup that should be done via dt

The ad2s90 driver currently sets some spi settings (max_speed_hz and
mode) at ad2s90_probe. Since the maximum frequency is a required element
in DT binding for spi slave devices and because the spi mode for the
device can be either (0,0) or (1,1), these settings should be handled
via device tree, not in the driver's code. This patch removes them from
the probe function.

Note: The way in which the mentioned spi settings need to be specified
on the ad2s90's node of a device tree will be documented in the future
patch "dt-bindings:iio:resolver: Add docs for ad2s90".

Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/resolver/ad2s90.c