OSDN Git Service

Staging: iio: adt7316: Use device tree data to set ldac_pin
authorShreeya Patel <shreeya.patel23498@gmail.com>
Tue, 20 Nov 2018 16:54:36 +0000 (22:24 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 25 Nov 2018 11:48:57 +0000 (11:48 +0000)
commitc63460c4298f93cdc4e30cda96d21b3583d7e3a0
treed280c68933ddfe5577d314f2baa481d7b96af581
parentf8f612530e6010cef1971ec986d55d04269d1365
Staging: iio: adt7316: Use device tree data to set ldac_pin

Make the driver use device tree instead of the platform data.
Hence, use devm_gpiod_get_optional function to get the data from
device tree for ldac-pin and accordingly make the needed changes
in the driver.

Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/addac/adt7316.c