OSDN Git Service

iio: adc: meson: move enums declaration before variables declaration
authorGeorge Stark <gnstark@sberdevices.ru>
Fri, 14 Jul 2023 11:37:49 +0000 (14:37 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 20 Jul 2023 18:21:30 +0000 (19:21 +0100)
commitd26f0514f05d01eeec689516eb5cdfdef3daadd5
tree94c2d45ab8d4c805aeeed40815003a52f2dfcdff
parent1a0dabd4dfea4a7b23dfa14d0f4578e1d5170a04
iio: adc: meson: move enums declaration before variables declaration

Allow to use enum items for variables initialization.
For this, move enums upper in the code.

Signed-off-by: George Stark <GNStark@sberdevices.ru>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230714114010.293440-3-gnstark@sberdevices.ru
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/meson_saradc.c