From: Ajay Singh Date: Tue, 5 Feb 2019 07:16:05 +0000 (+0000) Subject: staging: wilc1000: define p2p related static variable as constants X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~5215^2~109 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=2a95c4e04acf91d8d65dc9535fcb672734a0736d;p=linux.git staging: wilc1000: define p2p related static variable as constants Add constant qualifer for 'p2p_vendor_spec' & 'p2p_oui' static variable because they are treated like constant values. Signed-off-by: Ajay Singh Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index dd1fe3ff495c..8fb4bd4d24e7 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -67,8 +67,8 @@ struct p2p_mgmt_data { u8 *buff; }; -static u8 p2p_oui[] = {0x50, 0x6f, 0x9A, 0x09}; -static u8 p2p_vendor_spec[] = {0xdd, 0x05, 0x00, 0x08, 0x40, 0x03}; +static const u8 p2p_oui[] = {0x50, 0x6f, 0x9A, 0x09}; +static const u8 p2p_vendor_spec[] = {0xdd, 0x05, 0x00, 0x08, 0x40, 0x03}; #define WILC_IP_TIMEOUT_MS 15000