Thread (1 message) 1 message, 1 author, 2017-12-20

Re: [-next PATCH 3/4] treewide: Use DEVICE_ATTR_RO

From: Robert Jarzmik <robert.jarzmik@free.fr>
Date: 2017-12-20 21:38:22
Also in: alsa-devel, dri-devel, intel-gfx, linux-acpi, linux-s390, linux-scsi

"Rafael J. Wysocki" [off-list ref] writes:
On Tuesday, December 19, 2017 7:15:08 PM CET Joe Perches wrote:
quoted
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 <joe@perches.com>
---
 arch/arm/mach-pxa/sharpsl_pm.c                       |  4 ++--
For mach-pxa:
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>

Cheers.

--
Robert
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help