]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: x86-android-tablets: Constify the gpiod_lookup_tables arrays
authorHans de Goede <hdegoede@redhat.com>
Mon, 10 Jan 2022 10:39:52 +0000 (11:39 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 24 Jan 2022 09:41:44 +0000 (10:41 +0100)
commitc07e8f8ba59ffccc2b326e7aa6d4ea67f1c468e7
tree2d42de849e4ff57091096932fea4e21560f66ce6
parenta75e54db62e2d2d76b865d97e462d83ff9822534
platform/x86: x86-android-tablets: Constify the gpiod_lookup_tables arrays

The individual gpiod_lookup_table structs cannot be const because they
contain a list-head which gets used when registering them.

But the array of pointers to the gpiod_lookup_table-s used by a board
can be const, constify these.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-By: Lubomir Rintel <lkundrak@V3.sk>
Link: https://lore.kernel.org/r/20220110103952.48760-3-hdegoede@redhat.com
drivers/platform/x86/x86-android-tablets.c