All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Input: max7359_keypad - drop platform data support and style fixes
@ 2026-11-12  6:50 Dmitry Torokhov
  2026-11-12  6:50 ` [PATCH 1/2] Input: max7359_keypad - drop platform data support Dmitry Torokhov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2026-11-12  6:50 UTC (permalink / raw)
  To: Kim Kyuwon, Evgeniy Dushistov; +Cc: Jonathan Cameron, linux-input, linux-kernel

This short series drops unused platform data support from the
max7359_keypad driver so it relies exclusively on device properties via
matrix_keypad_build_keymap(), and cleans up register bit definitions and
argument alignment.

Thanks.

Dmitry Torokhov (2):
  Input: max7359_keypad - drop platform data support
  Input: max7359_keypad - fix coding style issues

 drivers/input/keyboard/max7359_keypad.c | 27 ++++++++++++-------------
 1 file changed, 13 insertions(+), 14 deletions(-)

-- 
2.56.0.567.gdb80ae8cd5-goog


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] Input: max7359_keypad - drop platform data support
  2026-11-12  6:50 [PATCH 0/2] Input: max7359_keypad - drop platform data support and style fixes Dmitry Torokhov
@ 2026-11-12  6:50 ` Dmitry Torokhov
  2026-11-12  6:50 ` [PATCH 2/2] Input: max7359_keypad - fix coding style issues Dmitry Torokhov
  2026-11-23  6:13 ` [PATCH 0/2] Input: max7359_keypad - drop platform data support and style fixes Dmitry Torokhov
  2 siblings, 0 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2026-11-12  6:50 UTC (permalink / raw)
  To: Kim Kyuwon, Evgeniy Dushistov; +Cc: Jonathan Cameron, linux-input, linux-kernel

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@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] Input: max7359_keypad - fix coding style issues
  2026-11-12  6:50 [PATCH 0/2] Input: max7359_keypad - drop platform data support and style fixes Dmitry Torokhov
  2026-11-12  6:50 ` [PATCH 1/2] Input: max7359_keypad - drop platform data support Dmitry Torokhov
@ 2026-11-12  6:50 ` Dmitry Torokhov
  2026-11-23  6:13 ` [PATCH 0/2] Input: max7359_keypad - drop platform data support and style fixes Dmitry Torokhov
  2 siblings, 0 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2026-11-12  6:50 UTC (permalink / raw)
  To: Kim Kyuwon, Evgeniy Dushistov; +Cc: Jonathan Cameron, linux-input, linux-kernel

Include <linux/bits.h> and switch the configuration register definitions
to use the BIT() macro. Also align the arguments with the open
parenthesis in max7359_initialize().

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 drivers/input/keyboard/max7359_keypad.c | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/drivers/input/keyboard/max7359_keypad.c b/drivers/input/keyboard/max7359_keypad.c
index 686832fe2931..c6673bda67ba 100644
--- a/drivers/input/keyboard/max7359_keypad.c
+++ b/drivers/input/keyboard/max7359_keypad.c
@@ -10,13 +10,14 @@
  * Datasheet: http://www.maxim-ic.com/quick_view2.cfm/qv_pk/5456
  */
 
-#include <linux/module.h>
+#include <linux/bits.h>
 #include <linux/i2c.h>
-#include <linux/slab.h>
-#include <linux/interrupt.h>
-#include <linux/pm.h>
 #include <linux/input.h>
 #include <linux/input/matrix_keypad.h>
+#include <linux/interrupt.h>
+#include <linux/module.h>
+#include <linux/pm.h>
+#include <linux/slab.h>
 
 #define MAX7359_MAX_KEY_ROWS	8
 #define MAX7359_MAX_KEY_COLS	8
@@ -37,11 +38,11 @@
 /*
  * Configuration register bits
  */
-#define MAX7359_CFG_SLEEP	(1 << 7)
-#define MAX7359_CFG_INTERRUPT	(1 << 5)
-#define MAX7359_CFG_KEY_RELEASE	(1 << 3)
-#define MAX7359_CFG_WAKEUP	(1 << 1)
-#define MAX7359_CFG_TIMEOUT	(1 << 0)
+#define MAX7359_CFG_SLEEP	BIT(7)
+#define MAX7359_CFG_INTERRUPT	BIT(5)
+#define MAX7359_CFG_KEY_RELEASE	BIT(3)
+#define MAX7359_CFG_WAKEUP	BIT(1)
+#define MAX7359_CFG_TIMEOUT	BIT(0)
 
 /*
  * Autosleep register values (ms)
@@ -143,8 +144,8 @@ static void max7359_close(struct input_dev *dev)
 static void max7359_initialize(struct i2c_client *client)
 {
 	max7359_write_reg(client, MAX7359_REG_CONFIG,
-		MAX7359_CFG_KEY_RELEASE | /* Key release enable */
-		MAX7359_CFG_WAKEUP); /* Key press wakeup enable */
+			  MAX7359_CFG_KEY_RELEASE | /* Key release enable */
+			  MAX7359_CFG_WAKEUP); /* Key press wakeup enable */
 
 	/* Full key-scan functionality */
 	max7359_write_reg(client, MAX7359_REG_DEBOUNCE, 0x1F);
-- 
2.56.0.567.gdb80ae8cd5-goog


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Input: max7359_keypad - drop platform data support and style fixes
  2026-11-12  6:50 [PATCH 0/2] Input: max7359_keypad - drop platform data support and style fixes Dmitry Torokhov
  2026-11-12  6:50 ` [PATCH 1/2] Input: max7359_keypad - drop platform data support Dmitry Torokhov
  2026-11-12  6:50 ` [PATCH 2/2] Input: max7359_keypad - fix coding style issues Dmitry Torokhov
@ 2026-11-23  6:13 ` Dmitry Torokhov
  2 siblings, 0 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2026-11-23  6:13 UTC (permalink / raw)
  To: Kim Kyuwon, Evgeniy Dushistov; +Cc: Jonathan Cameron, linux-input, linux-kernel

On Wed, Nov 11, 2026 at 10:50:56PM -0800, Dmitry Torokhov wrote:
> This short series drops unused platform data support from the
> max7359_keypad driver so it relies exclusively on device properties via
> matrix_keypad_build_keymap(), and cleans up register bit definitions and
> argument alignment.
> 
> Thanks.
> 
> Dmitry Torokhov (2):
>   Input: max7359_keypad - drop platform data support
>   Input: max7359_keypad - fix coding style issues

Applied the lot.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-23  6:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12  6:50 [PATCH 0/2] Input: max7359_keypad - drop platform data support and style fixes Dmitry Torokhov
2026-11-12  6:50 ` [PATCH 1/2] Input: max7359_keypad - drop platform data support Dmitry Torokhov
2026-11-12  6:50 ` [PATCH 2/2] Input: max7359_keypad - fix coding style issues Dmitry Torokhov
2026-11-23  6:13 ` [PATCH 0/2] Input: max7359_keypad - drop platform data support and style fixes Dmitry Torokhov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.