diff options
author | Lee Jones <[email protected]> | 2016-11-07 12:47:38 +0000 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2016-11-17 16:10:20 +0100 |
commit | 298d4de1ed003ad91cb49e068d744db0343cacb6 (patch) | |
tree | d77c73fe75a2b6b54acef019f08ef55d466c13cd /tools/perf/scripts/python | |
parent | cabcf4f6be658b2d4bea26dee89d08fdf67d6811 (diff) |
i2c: Match using traditional OF methods, then by vendor-less compatible strings
This function provides a single call for all I2C devices which need to
match firstly using traditional OF means i.e by of_node, then if that
fails we attempt to match using the supplied I2C client name with a
list of supplied compatible strings with the '<vendor>,' string
removed. The latter is required due to the unruly naming conventions
used currently by I2C devices.
Acked-by: Grant Likely <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
[Kieran: Fix static inline usage on !CONFIG_OF]
Tested-by: Kieran Bingham <[email protected]>
Reviewed-by: Javier Martinez Canillas <[email protected]>
Tested-by: Javier Martinez Canillas <[email protected]>
Signed-off-by: Kieran Bingham <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions