From: Michael Straube Date: Thu, 4 Oct 2018 17:56:58 +0000 (+0200) Subject: staging: rtl8188eu: make struct field of mlme_handler const X-Git-Tag: v4.20-rc1~72^2~99 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=98962eb6d679985696571262fb6b14f1182e7a8c;p=users%2Fwilly%2Fxarray.git staging: rtl8188eu: make struct field of mlme_handler const The strings in the uses of struct mlme_handler are constant. Change the type of field str from 'char *' to 'const char *'. Suggested-by: Joe Perches Signed-off-by: Michael Straube Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h b/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h index ade68af15e04..3e8a0ab46ff2 100644 --- a/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h +++ b/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h @@ -232,7 +232,7 @@ enum SCAN_STATE { struct mlme_handler { unsigned int num; - char *str; + const char *str; unsigned int (*func)(struct adapter *adapt, struct recv_frame *frame); };