diff options
author | Biju Das <[email protected]> | 2023-12-04 12:45:07 +0000 |
---|---|---|
committer | Lee Jones <[email protected]> | 2023-12-07 16:06:30 +0000 |
commit | 9b413e3c07d251191410976d669260079b48e7b1 (patch) | |
tree | 20c3b031f8a2c9cd88c8b648b0df8c983ef77e31 /scripts/generate_rust_analyzer.py | |
parent | 41673c66b3d0c09915698fec5c13b24336f18dd1 (diff) |
mfd: da9062: Simplify obtaining I2C match data
Simplify probe() by replacing of_device_get_match_data() and ID lookup for
retrieving match data by i2c_get_match_data().
Some minor cleanups:
* Remove the trailing comma in the terminator entry for the ID
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.
Signed-off-by: Biju Das <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions