diff options
author | Joe Perches <[email protected]> | 2017-12-19 10:15:08 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-01-09 16:34:34 +0100 |
commit | c828a8920307185b7194b575731e8387c99a5a67 (patch) | |
tree | ba6d8d4416693df1b322938fbb3eaceea1322df9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b6b996b6cdeecf7e1646c87422e04e446ddce124 (diff) |
treewide: Use DEVICE_ATTR_RO
Convert DEVICE_ATTR uses to DEVICE_ATTR_RO where possible.
Done with perl script:
$ git grep -w --name-only DEVICE_ATTR | \
xargs perl -i -e 'local $/; while (<>) { s/\bDEVICE_ATTR\s*\(\s*(\w+)\s*,\s*\(?(?:\s*S_IRUGO\s*|\s*0444\s*)\)?\s*,\s*\1_show\s*,\s*NULL\s*\)/DEVICE_ATTR_RO(\1)/g; print;}'
Signed-off-by: Joe Perches <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Acked-by: Robert Jarzmik <[email protected]>
Acked-by: Sagi Grimberg <[email protected]>
Acked-by: Zhang Rui <[email protected]>
Acked-by: Harald Freudenberger <[email protected]>
Acked-by: Jani Nikula <[email protected]>
Acked-by: Corey Minyard <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions