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>
This commit is contained in:
parent
b899981750
commit
9feb82badf
@ -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,
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user