diff options
author | Thadeu Lima de Souza Cascardo <cascardo@igalia.com> | 2025-02-26 15:09:04 -0300 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2025-02-28 08:07:15 +0100 |
commit | 9feb82badf33e9269ebca47ccbfca0278102ec39 (patch) | |
tree | eade9b3484d2a45f2ca19f4a051796c7cb66f09a | |
parent | b899981750dcb958ceffa4462d903963ee494aa2 (diff) |
parisc: perf: use named initializers for struct miscdevice
Though struct miscdevice has hardly changed over the years, this is good
practice and also makes the core more readable.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | arch/parisc/kernel/perf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/parisc/kernel/perf.c b/arch/parisc/kernel/perf.c index 5e8e37a722ef..5e10f98ce7b5 100644 --- a/arch/parisc/kernel/perf.c +++ b/arch/parisc/kernel/perf.c @@ -475,9 +475,9 @@ static const struct file_operations perf_fops = { }; static struct miscdevice perf_dev = { - MISC_DYNAMIC_MINOR, - PA_PERF_DEV, - &perf_fops + .minor = MISC_DYNAMIC_MINOR, + .name = PA_PERF_DEV, + .fops = &perf_fops, }; /* |