Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f17c941c authored by Corentin Labbe's avatar Corentin Labbe Committed by Greg Kroah-Hartman
Browse files

mmtimer: add member name to the miscdevice declaration



Since the struct miscdevice have many members, it is dangerous to init
it without members name relying only on member order.

This patch add member name to the init declaration.

Signed-off-by: default avatarCorentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 816c9311
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -463,9 +463,9 @@ static int mmtimer_mmap(struct file *file, struct vm_area_struct *vma)
}

static struct miscdevice mmtimer_miscdev = {
	SGI_MMTIMER,
	MMTIMER_NAME,
	&mmtimer_fops
	.minor = SGI_MMTIMER,
	.name = MMTIMER_NAME,
	.fops = &mmtimer_fops
};

static struct timespec sgi_clock_offset;