Input: da9063 - simplify obtaining OF match data
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 14 Dec 2023 05:37:15 +0000 (21:37 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 15 Dec 2023 06:30:51 +0000 (22:30 -0800)
commit9594f273fafe76663e502337eaf393dc4f7bf8fa
tree468d75c3fb0c0f67f67688c16f8d1c9b9dd04bb0
parent7395de647e87476f5b5d2f9a9fe80cee86b4e7cc
Input: da9063 - simplify obtaining OF match data

Simplify probe() by replacing of_match_node() for retrieving match data by
device_get_match_data().

Some minor cleanups:
 * Remove the trailing comma in the terminator entry for the OF
   table making code robust against (theoretical) misrebases or other
   similar things where the new entry goes _after_ the termination without
   the compiler noticing.
 * Move OF table near to the user.
 * Arrange variables in reverse xmas tree order in probe().

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20231213214803.9931-2-biju.das.jz@bp.renesas.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/da9063_onkey.c