]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: pxa: statify platform device definitions in spitz board file
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Thu, 30 Apr 2026 12:57:18 +0000 (14:57 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Tue, 12 May 2026 12:03:18 +0000 (14:03 +0200)
The scoop devices are not used outside of this board file so make them
static.

Reviewed-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260430-pxa-gpio-swnodes-v3-1-5142e95f0eca@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
arch/arm/mach-pxa/spitz.c

index c0b1f7e6be87411359b0020257ff12c73bbcbae3..3284b9f62be970555042a7292993e45d56fde47e 100644 (file)
@@ -165,7 +165,7 @@ static struct scoop_config spitz_scoop_1_setup = {
        .gpio_base      = SPITZ_SCP_GPIO_BASE,
 };
 
-struct platform_device spitz_scoop_1_device = {
+static struct platform_device spitz_scoop_1_device = {
        .name           = "sharp-scoop",
        .id             = 0,
        .dev            = {
@@ -192,7 +192,7 @@ static struct scoop_config spitz_scoop_2_setup = {
        .gpio_base      = SPITZ_SCP2_GPIO_BASE,
 };
 
-struct platform_device spitz_scoop_2_device = {
+static struct platform_device spitz_scoop_2_device = {
        .name           = "sharp-scoop",
        .id             = 1,
        .dev            = {