iio: light: vcnl4000: Prepare for more generic setup
authorMårten Lindahl <marten.lindahl@axis.com>
Tue, 17 Jan 2023 19:00:15 +0000 (20:00 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Jan 2023 18:04:39 +0000 (18:04 +0000)
commit3a52d32a7497fa21b2dcedf5051cca7b46a7921f
tree493e287a741df4144a4af0b22b904173acb08171
parent3b5eea320db5d9d2499accfc1884b4f221cd4223
iio: light: vcnl4000: Prepare for more generic setup

In order to allow the chip_spec array reference the function pointers
for interrupts, the code for these functions need to be moved above the
chip_spec array.

This is a prestep to support a more generic setup of interrupts.

Signed-off-by: Mårten Lindahl <marten.lindahl@axis.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230117190017.3789181-2-marten.lindahl@axis.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/vcnl4000.c