iio: adc: ltc2497: split protocol independent part in a separate module
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 9 Dec 2019 20:32:47 +0000 (21:32 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Dec 2019 12:15:19 +0000 (12:15 +0000)
commit69548b7c2c4f1ab9a135f2050d9683c7691ef701
treec83de32264295519fc11134aeebd8e81b1ca350c
parent59c3662b8f081832abaadfbc8a4bfb63c526aea8
iio: adc: ltc2497: split protocol independent part in a separate module

This allows to share most of this driver for the ltc2496 driver added in
the next commit that is an SPI variant of the ltc2497. Initially I named
the generic part ltc249x, but wild card names are frowned upon, so the
generic part is called ltc2497-core even though it's not obvious that
this is then to be reused for the ltc2496 driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/Makefile
drivers/iio/adc/ltc2497-core.c [new file with mode: 0644]
drivers/iio/adc/ltc2497.c
drivers/iio/adc/ltc2497.h [new file with mode: 0644]