gpio: aggregator: Use compound literal from the header
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 22 Jan 2021 12:38:52 +0000 (14:38 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 15 Feb 2021 10:43:32 +0000 (11:43 +0100)
commitb2498cb87c4ba87580e5975e049d589b6786ff75
treecadfb955b3744f99a5c976852bb3c894bdf6e92a
parentdeb631c40114409077bb972b99fe80967bd62fd1
gpio: aggregator: Use compound literal from the header

Instead of doing it in place, convert GPIO_LOOKUP_IDX() and GPIO_HOG()
to be compund literals that's allow to use them as rvalue in assignments.

Due to above conversion, use compound literal from the header
in the gpio-aggregator.c.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/gpio/gpio-aggregator.c
include/linux/gpio/machine.h