]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
isdn: kcapi: make capi_version const
authorBhumika Goyal <bhumirks@gmail.com>
Sun, 6 Aug 2017 17:09:06 +0000 (22:39 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 21:55:36 +0000 (14:55 -0700)
Declare this structure as const as it is only used during a copy
operation.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/kcapi.c

index 9ca691d6c13b4d31cdb5b29221214f377a7d490a..46c189ad8d94eb1f852de57e41cc0426bf5ac6aa 100644 (file)
@@ -55,7 +55,7 @@ struct capictr_event {
 
 /* ------------------------------------------------------------- */
 
-static struct capi_version driver_version = {2, 0, 1, 1 << 4};
+static const struct capi_version driver_version = {2, 0, 1, 1 << 4};
 static char driver_serial[CAPI_SERIAL_LEN] = "0004711";
 static char capi_manufakturer[64] = "AVM Berlin";