diff mbox series

[-next] Input: bcm-keypad - Remove redundant of_match_ptr()

Message ID 20230809101626.2664651-1-ruanjinjie@huawei.com
State Accepted
Commit 8109e032cf07af15d3bba860ce554cc258dcff67
Headers show
Series [-next] Input: bcm-keypad - Remove redundant of_match_ptr() | expand

Commit Message

Jinjie Ruan Aug. 9, 2023, 10:16 a.m. UTC
The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
---
 drivers/input/keyboard/bcm-keypad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dmitry Torokhov Jan. 19, 2024, 7:22 p.m. UTC | #1
On Wed, Aug 09, 2023 at 06:16:26PM +0800, Ruan Jinjie wrote:
> The driver depends on CONFIG_OF, it is not necessary to use
> of_match_ptr() here.
> 
> Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>

Applied, thank you.
diff mbox series

Patch

diff --git a/drivers/input/keyboard/bcm-keypad.c b/drivers/input/keyboard/bcm-keypad.c
index f3c3746acd4c..6b46f83a9edb 100644
--- a/drivers/input/keyboard/bcm-keypad.c
+++ b/drivers/input/keyboard/bcm-keypad.c
@@ -418,7 +418,7 @@  static struct platform_driver bcm_kp_device_driver = {
 	.probe		= bcm_kp_probe,
 	.driver		= {
 		.name	= "bcm-keypad",
-		.of_match_table = of_match_ptr(bcm_kp_of_match),
+		.of_match_table = bcm_kp_of_match,
 	}
 };