parisc: perf: use named initializers for struct miscdevice
PATCH 1/1 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 <[email protected]>
--- arch/parisc/kernel/perf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/parisc/kernel/perf.c +3 -3
@@ -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, };/*
---
base-commit: d082ecbc71e9e0bf49883ee4afd435a77a5101b6
change-id: 20250226-parisc-perf-miscdev-40e4642a12ec
Best regards,
Signature · 1 line
Thadeu Lima de Souza Cascardo <[email protected]>
Quoted 7 lines · Thadeu Lima de Souza Cascardo
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 <[email protected]>--- arch/parisc/kernel/perf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
applied.
Thanks!
Helge