]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
treewide: Use DEVICE_ATTR_WO
authorJoe Perches <joe@perches.com>
Tue, 19 Dec 2017 18:15:09 +0000 (10:15 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 12:18:50 +0000 (07:18 -0500)
commitd6864bd88d0e4313a75f6d86ada4c88706515546
tree537af8f2226d8ac58b0cfb83ef8198497ebda62d
parent6096bb342a445f89bf99430bd3c3f6c72515a195
treewide: Use DEVICE_ATTR_WO

BugLink: http://bugs.launchpad.net/bugs/1752182
Convert DEVICE_ATTR uses to DEVICE_ATTR_WO 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_IWUSR\s*|\s*0200\s*)\)?\s*,\s*NULL\s*,\s*\s_store\s*\)/DEVICE_ATTR_WO(\1)/g; print;}'

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 6cbaefb4bf2ce6746e49c972289702133b347ffa)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/s390/kernel/smp.c
arch/x86/kernel/cpu/microcode/core.c
drivers/input/touchscreen/elants_i2c.c
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/wimax/i2400m/sysfs.c
drivers/scsi/lpfc/lpfc_attr.c
drivers/thermal/thermal_sysfs.c