OSDN Git Service

staging: iio: ad2s1210: Remove platform data NULL check in probe
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Thu, 6 Jun 2019 10:34:09 +0000 (13:34 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 Jun 2019 20:06:43 +0000 (21:06 +0100)
commitcf344bd67e569b02a6d323a43405ad425396d6ea
tree908049890c8702ff90a4706bd85c7290c10d642a
parentaa7093299253a8c4cb5bd0053ab9c8128beba5e4
staging: iio: ad2s1210: Remove platform data NULL check in probe

The driver only needs to access GPIOs via GPIOLIB. And SPI can be
configured via device-tree or ACPI.

The platform data is a remnant from another time, and should not cause the
driver to error out during probing if it is NULL.
Also, it's not used.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/resolver/ad2s1210.c