mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
a457732b83
The id_table field of the struct usb_device_id is constant in <linux/usb.h> so it is worth to make the initialization data also constant. The semantic match that finds this kind of pattern is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r@ disable decl_init,const_decl_init; identifier I1, I2, x; @@ struct I1 { ... const struct I2 *x; ... }; @s@ identifier r.I1, y; identifier r.x, E; @@ struct I1 y = { .x = E, }; @c@ identifier r.I2; identifier s.E; @@ const struct I2 E[] = ... ; @depends on !c@ identifier r.I2; identifier s.E; @@ + const struct I2 E[] = ...; // </smpl> Signed-off-by: Németh Márton <nm127@freemail.hu> Cc: Julia Lawall <julia@diku.dk> Cc: cocci@diku.dk Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
||
---|---|---|
.. | ||
ieee80211 | ||
authors | ||
Kconfig | ||
Makefile | ||
r819xU_cmdpkt.c | ||
r819xU_cmdpkt.h | ||
r819xU_HTGen.h | ||
r819xU_HTType.h | ||
r8180_93cx6.c | ||
r8180_93cx6.h | ||
r8192S_Efuse.c | ||
r8192S_Efuse.h | ||
r8192S_firmware.c | ||
r8192S_firmware.h | ||
r8192S_hw.h | ||
r8192S_phy.c | ||
r8192S_phy.h | ||
r8192S_phyreg.h | ||
r8192S_rtl6052.c | ||
r8192S_rtl6052.h | ||
r8192S_rtl8225.c | ||
r8192S_rtl8225.h | ||
r8192SU_HWImg.c | ||
r8192SU_HWImg.h | ||
r8192U_core.c | ||
r8192U_dm.c | ||
r8192U_dm.h | ||
r8192U_pm.c | ||
r8192U_pm.h | ||
r8192U_wx.c | ||
r8192U_wx.h | ||
r8192U.h | ||
TODO |