]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpiolib: put gpio_suffixes in a single compilation unit
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 12 Jun 2024 18:48:21 +0000 (20:48 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 14 Jun 2024 07:14:58 +0000 (09:14 +0200)
commit7e92061f1e9d1f6d3bfa6113719534f2c773b041
tree52205f0c3b0a34f377aa62a540f6da61488a9e09
parent08d94c7428680715527757585a6c4575fcf571b9
gpiolib: put gpio_suffixes in a single compilation unit

The gpio_suffixes array is defined in the gpiolib.h header. This means
the array is stored in .rodata of every compilation unit that includes
it. Put the definition for the array in gpiolib.c and export just the
symbol in the header. We need the size of the array so expose it too.

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20240612184821.58053-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-acpi.c
drivers/gpio/gpiolib-of.c
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h