diff options
| author | Biju Das <[email protected]> | 2023-08-30 15:23:51 +0100 |
|---|---|---|
| committer | Robert Foss <[email protected]> | 2023-10-16 11:08:21 +0200 |
| commit | 19e77c7aef5754e680ac77013538e2a3c0c173e4 (patch) | |
| tree | 13e8c10823c33e76fd6938167e317b793d373762 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 0ddd30471a5dd78ff762ffb9eeae1d573283243a (diff) | |
drm: adv7511: Add struct adv7511_chip_info and use i2c_get_match_data()
Add struct adv7511_chip_info to handle hw differences between various
chips rather checking against the 'type' variable in various places.
Replace 'adv->type'->'info->type' by moving variable 'type' from
struct adv7511 to struct adv7511_chip_info and add adv7511_chip_info as
device data for both OF and ID tables instead of the device type.
Simplify the probe() by replacing of_device_get_match_data() and ID lookup
for retrieving match data with i2c_get_match_data().
Signed-off-by: Biju Das <[email protected]>
Tested-by: Fabio Estevam <[email protected]>
Reviewed-by: Adam Ford <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Reviewed-by: Robert Foss <[email protected]>
Signed-off-by: Robert Foss <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions