diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2023-12-14 06:37:15 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-12-15 07:30:51 +0100 |
commit | 9594f273fafe76663e502337eaf393dc4f7bf8fa (patch) | |
tree | 468d75c3fb0c0f67f67688c16f8d1c9b9dd04bb0 /samples/pidfd | |
parent | Input: as5011 - convert to GPIO descriptor (diff) | |
download | linux-9594f273fafe76663e502337eaf393dc4f7bf8fa.tar.xz linux-9594f273fafe76663e502337eaf393dc4f7bf8fa.zip |
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>
Diffstat (limited to 'samples/pidfd')
0 files changed, 0 insertions, 0 deletions