staging: iio: adc: ad7192: Use DT clock binding
authorMircea Caprioru <mircea.caprioru@analog.com>
Fri, 15 Mar 2019 11:29:02 +0000 (13:29 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:20:00 +0000 (20:20 +0100)
commit3ad7a939c931e8f97fe1eecdbb964c76a90eadcd
tree25f3e02392a5346959411a6b2272fded1f078e6b
parent17b90e6a0df28eaf1847ad3da6a3080bf4d70124
staging: iio: adc: ad7192: Use DT clock binding

This patch replaces the platform data clock select member with DT clock
binding. Through the DT the external clock binding is specified. If this is
not provided then the device will use the internal clock source.

With the external clock binding there is the option to use a clock or a
crystal as the clock source. When an external crystal is used it is
connected to MCLK1 and MCLK2 pins. If the external clock is used only MCLK2
pin will be connected.

Signed-off-by: Mircea Caprioru <mircea.caprioru@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/adc/ad7192.c
drivers/staging/iio/adc/ad7192.h