[PATCH] Input: amijoy - mark amijoy_phys as __initconst
From: Thorsten Blum
Date: Sat Nov 07 2026 - 12:48:01 EST
amijoy_phys is only read by the __init function amijoy_init().
Also declare amijoy_phys as const.
Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>
---
drivers/input/joystick/amijoy.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/input/joystick/amijoy.c b/drivers/input/joystick/amijoy.c
index 3752dc2a2086..cdb2b8f15348 100644
--- a/drivers/input/joystick/amijoy.c
+++ b/drivers/input/joystick/amijoy.c
@@ -30,7 +30,10 @@ MODULE_PARM_DESC(map, "Map of attached joysticks in form of <a>,<b> (default is
static int amijoy_used;
static DEFINE_MUTEX(amijoy_mutex);
static struct input_dev *amijoy_dev[2];
-static char *amijoy_phys[2] = { "amijoy/input0", "amijoy/input1" };
+static const char * const amijoy_phys[2] __initconst = {
+ "amijoy/input0",
+ "amijoy/input1",
+};
static irqreturn_t amijoy_interrupt(int irq, void *dummy)
{