diff options
author | 2019-08-13 14:45:11 -0600 | |
---|---|---|
committer | 2019-08-20 14:04:45 -0500 | |
commit | 8bdfa145f58220796abddc93b5038efa6e7e90fc (patch) | |
tree | f7a105f0638784a5e60ffa86cc58d1eb5c7de698 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PCI: Mark expected switch fall-through (diff) | |
download | wireguard-linux-8bdfa145f58220796abddc93b5038efa6e7e90fc.tar.xz wireguard-linux-8bdfa145f58220796abddc93b5038efa6e7e90fc.zip |
PCI: sysfs: Define device attributes with DEVICE_ATTR*()
Device attributes should be defined using DEVICE_ATTR*(_name, _mode, _show,
_store). Convert them all from __ATTR*() to DEVICE_ATTR*(), e.g.,
- struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show,
_store)
+ static DEVICE_ATTR(foo, S_IWUSR | S_IRUGO, show_foo, store_foo)
Link: https://lore.kernel.org/r/20190813204513.4790-2-skunberg.kelsey@gmail.com
Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Donald Dutile <ddutile@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions