mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 01:20:01 -04:00
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:
committed by
Helge Deller
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,
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user