treewide: Use DEVICE_ATTR_WO
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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
c828a89203
commit
6cbaefb4bf
@@ -2384,8 +2384,7 @@ lpfc_soft_wwn_enable_store(struct device *dev, struct device_attribute *attr,
|
||||
|
||||
return count;
|
||||
}
|
||||
static DEVICE_ATTR(lpfc_soft_wwn_enable, S_IWUSR, NULL,
|
||||
lpfc_soft_wwn_enable_store);
|
||||
static DEVICE_ATTR_WO(lpfc_soft_wwn_enable);
|
||||
|
||||
/**
|
||||
* lpfc_soft_wwpn_show - Return the cfg soft ww port name of the adapter
|
||||
|
Reference in New Issue
Block a user