From: Thadeu Lima de Souza Cascardo Date: Wed, 26 Feb 2025 18:09:04 +0000 (-0300) Subject: parisc: perf: use named initializers for struct miscdevice X-Git-Tag: v6.15-rc1~111^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9feb82badf33e9269ebca47ccbfca0278102ec39;p=thirdparty%2Flinux.git 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 Signed-off-by: Helge Deller --- diff --git a/arch/parisc/kernel/perf.c b/arch/parisc/kernel/perf.c index 5e8e37a722ef0..5e10f98ce7b54 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, }; /*