diff options
author | Rafał Miłecki <[email protected]> | 2022-10-04 10:37:09 +0200 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2022-11-07 17:06:30 +0100 |
commit | c5f5d0cd40e3bc2d6d397af788a7c0241b1c6b68 (patch) | |
tree | cfbe441cd3fbe332e5b88cd9e9d5c1985917a4f4 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 30a0b95b1335e12efef89dd78518ed3e4a71a763 (diff) |
mtd: core: simplify (a bit) code find partition-matching dynamic OF node
1. Don't hardcode "partition-" string twice
2. Use simpler logic & use ->name to avoid of_property_read_string()
3. Use mtd_get_of_node() helper
Cc: Christian Marangi <[email protected]>
Signed-off-by: Rafał Miłecki <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions