summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorThéo Lebrun <theo.lebrun@bootlin.com>2024-10-09 17:01:09 +0300
committerWolfram Sang <wsa+renesas@sang-engineering.com>2024-11-24 18:03:51 +0300
commita0d15cc47f29be6d588fa55bdbe116c26549178d (patch)
tree3a057095a0355681f5b6125ba5f56354b7cfdaaf /tools/perf/scripts/python
parent54202106c0fe23693c5e9e81e7587ce89e6dd182 (diff)
downloadlinux-a0d15cc47f29be6d588fa55bdbe116c26549178d.tar.xz
i2c: nomadik: switch from of_device_is_compatible() to of_match_device()
Compatible-specific behavior is implemented using a if-condition on the return value from of_device_is_compatible(), from probe. It does not scale well when compatible number increases. Switch to using a match table and a call to of_match_device(). We DO NOT attach a .of_match_table field to our amba driver, as we do not use the table to match our driver to devices. Sort probe variable declarations in reverse christmas tree to try and introduce some logic into the ordering. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions