X-Git-Url: https://bbs.cooldavid.org/git/?p=jme.git;a=blobdiff_plain;f=jme.c;h=e97ebef3cf47c140a5fb5925d3e47bacbe262aad;hp=2411e72ba572d00f6a76646e0f7a34da500f7e53;hb=0d8a2973ea72430ca704cea7af569d7f51281297;hpb=9a08cd1048cd4a7851c306a759b5205b3d842248 diff --git a/jme.c b/jme.c index 2411e72..e97ebef 100644 --- a/jme.c +++ b/jme.c @@ -135,7 +135,7 @@ jme_reset_phy_processor(struct jme_adapter *jme) static void jme_setup_wakeup_frame(struct jme_adapter *jme, - u32 *mask, u32 crc, int fnr) + const u32 *mask, u32 crc, int fnr) { int i; @@ -163,7 +163,7 @@ jme_setup_wakeup_frame(struct jme_adapter *jme, static inline void jme_reset_mac_processor(struct jme_adapter *jme) { - u32 mask[WAKEUP_FRAME_MASK_DWNR] = {0, 0, 0, 0}; + static const u32 mask[WAKEUP_FRAME_MASK_DWNR] = {0, 0, 0, 0}; u32 crc = 0xCDCDCDCD; u32 gpreg0; int i;