diff options
author | David Hildenbrand <david@redhat.com> | 2018-12-03 12:16:11 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-06 13:54:14 +0100 |
commit | 3f8e9178538189215b59f726f2449a08362e7074 (patch) | |
tree | f70590e153ec0623489a0364b4fc86e7f2aebd8c /lib/kobject.c | |
parent | 7782b57ccc60534d6edd21f6b2bbdc4fda777fdf (diff) | |
download | linux-3f8e9178538189215b59f726f2449a08362e7074.tar.gz linux-3f8e9178538189215b59f726f2449a08362e7074.tar.bz2 linux-3f8e9178538189215b59f726f2449a08362e7074.zip |
drivers/base/memory.c: Use DEVICE_ATTR_RO and friends
Let's use the easier to read (and not mess up) variants:
- Use DEVICE_ATTR_RO
- Use DEVICE_ATTR_WO
- Use DEVICE_ATTR_RW
instead of the more generic DEVICE_ATTR() we're using right now.
We have to rename most callback functions. By fixing the intendations we
can even save some LOCs.
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Pavel Tatashin <pasha.tatashin@oracle.com>
Cc: Oscar Salvador <osalvador@suse.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/kobject.c')
0 files changed, 0 insertions, 0 deletions