Skip to content

Commit 9feb82b

Browse files
Thadeu Lima de Souza Cascardohdeller
authored andcommitted
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>
1 parent b899981 commit 9feb82b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/parisc/kernel/perf.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,9 @@ static const struct file_operations perf_fops = {
475475
};
476476

477477
static struct miscdevice perf_dev = {
478-
MISC_DYNAMIC_MINOR,
479-
PA_PERF_DEV,
480-
&perf_fops
478+
.minor = MISC_DYNAMIC_MINOR,
479+
.name = PA_PERF_DEV,
480+
.fops = &perf_fops,
481481
};
482482

483483
/*

0 commit comments

Comments
 (0)