]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
parisc: perf: use named initializers for struct miscdevice
authorThadeu Lima de Souza Cascardo <cascardo@igalia.com>
Wed, 26 Feb 2025 18:09:04 +0000 (15:09 -0300)
committerHelge Deller <deller@gmx.de>
Fri, 28 Feb 2025 07:07:15 +0000 (08:07 +0100)
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>
arch/parisc/kernel/perf.c

index 5e8e37a722ef0fb3a22a8e0e57cb0fd48886901d..5e10f98ce7b54f75ceac1e8e5cdd1d4f752ed28f 100644 (file)
@@ -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,
 };
 
 /*