diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-09-17 15:51:13 +0300 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2020-09-20 19:59:19 +0300 |
commit | 94ca85733699e09c691e63c5bc2475f92f9dd52a (patch) | |
tree | 37f9f089cea45c75d9b95c5718465bbba2270b43 /security/selinux/selinuxfs.c | |
parent | 67a344e889669690906324f09ffd07fb02a76889 (diff) | |
download | linux-94ca85733699e09c691e63c5bc2475f92f9dd52a.tar.xz |
memory: emif: Convert to DEFINE_SHOW_ATTRIBUTE
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code.
Along with this change, we get additionally:
.owner = THIS_MODULE,
.llseek = seq_lseek,
1. The llseek method is used to change the current read/write position
in a file which can be ignored if you don't use it.
2. The owner is not even a method. Instead, it is a pointer to the
module that “owns” this structure; it is used by the kernel to maintain
the module's usage count which can be ignored.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Link: https://lore.kernel.org/r/20200917125113.103550-1-miaoqinglang@huawei.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'security/selinux/selinuxfs.c')
0 files changed, 0 insertions, 0 deletions