aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bareudp.c
diff options
context:
space:
mode:
authorJonas Bonn <jonas@norrbonn.se>2020-12-02 13:23:24 +0100
committerJakub Kicinski <kuba@kernel.org>2020-12-02 18:00:18 -0800
commitcec85994c6b4fa6beb5de61dcd03e23001b9deb5 (patch)
tree50a3e8aca1a2c3c8345757c2a0b360282c3e6c0d /drivers/net/bareudp.c
parentMerge branch 'nfc-s3fwrn5-support-a-uart-interface' (diff)
downloadlinux-dev-cec85994c6b4fa6beb5de61dcd03e23001b9deb5.tar.xz
linux-dev-cec85994c6b4fa6beb5de61dcd03e23001b9deb5.zip
bareudp: constify device_type declaration
device_type may be declared as const. Signed-off-by: Jonas Bonn <jonas@norrbonn.se> Link: https://lore.kernel.org/r/20201202122324.564918-1-jonas@norrbonn.se Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/bareudp.c')
-rw-r--r--drivers/net/bareudp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bareudp.c b/drivers/net/bareudp.c
index 28257bccec41..85ebd2b7e446 100644
--- a/drivers/net/bareudp.c
+++ b/drivers/net/bareudp.c
@@ -522,7 +522,7 @@ static const struct nla_policy bareudp_policy[IFLA_BAREUDP_MAX + 1] = {
};
/* Info for udev, that this is a virtual tunnel endpoint */
-static struct device_type bareudp_type = {
+static const struct device_type bareudp_type = {
.name = "bareudp",
};