[PATCH 1/2] Input: max7359_keypad - drop platform data support
From: Dmitry Torokhov
Date: Thu Nov 12 2026 - 01:55:26 EST
There are no in-tree board files or drivers instantiating max7359 via
platform data. Remove platform data support and pass NULL to
matrix_keypad_build_keymap() to rely entirely on device properties.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
---
drivers/input/keyboard/max7359_keypad.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/input/keyboard/max7359_keypad.c b/drivers/input/keyboard/max7359_keypad.c
index d2b8adcfc9e5..686832fe2931 100644
--- a/drivers/input/keyboard/max7359_keypad.c
+++ b/drivers/input/keyboard/max7359_keypad.c
@@ -157,8 +157,6 @@ static void max7359_initialize(struct i2c_client *client)
static int max7359_probe(struct i2c_client *client)
{
- const struct matrix_keymap_data *keymap_data =
- dev_get_platdata(&client->dev);
struct max7359_keypad *keypad;
struct input_dev *input_dev;
int ret;
@@ -206,7 +204,7 @@ static int max7359_probe(struct i2c_client *client)
input_set_capability(input_dev, EV_MSC, MSC_SCAN);
input_set_drvdata(input_dev, keypad);
- error = matrix_keypad_build_keymap(keymap_data, NULL,
+ error = matrix_keypad_build_keymap(NULL, NULL,
MAX7359_MAX_KEY_ROWS,
MAX7359_MAX_KEY_COLS,
keypad->keycodes,
--
2.56.0.567.gdb80ae8cd5-goog