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

Commit 616f6b40 authored by LABBE Corentin's avatar LABBE Corentin Committed by David S. Miller
Browse files

irda: irnet: 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 avatarDavid S. Miller <davem@davemloft.net>
parent 33de4d1b
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -108,9 +108,9 @@ static const struct file_operations irnet_device_fops =
/* Structure so that the misc major (drivers/char/misc.c) take care of us... */
/* Structure so that the misc major (drivers/char/misc.c) take care of us... */
static struct miscdevice irnet_misc_device =
static struct miscdevice irnet_misc_device =
{
{
	IRNET_MINOR,
	.minor = IRNET_MINOR,
	"irnet",
	.name = "irnet",
	&irnet_device_fops
	.fops = &irnet_device_fops
};
};


#endif /* IRNET_PPP_H */
#endif /* IRNET_PPP_H */