linux-stable/drivers/staging/rtl8188eu
Amitoj Kaur Chawla 684d2f1005 staging: rtl8188eu: core: Use put_unaligned_le16
Introduce the use of function put_unaligned_le16.
This is done using the following Coccinelle semantic patch:

//<smpl>
@@ identifier tmp; expression ptr; expression y,e; type T; @@

- tmp = cpu_to_le16(y);

  <+... when != tmp
- memcpy(ptr, (T)&tmp, ...);
+ put_unaligned_le16(y,ptr);
  ...+>
? tmp = e

@@ type T; identifier tmp; @@

- T tmp;
...when != tmp
//</smpl>

Corresponding header file has been added too.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-20 15:06:51 -08:00
..
core staging: rtl8188eu: core: Use put_unaligned_le16 2016-02-20 15:06:51 -08:00
hal staging: rtl8188eu: add release_firmware() between request_firmware and function error exit 2016-02-11 20:03:56 -08:00
include staging: rtl8188eu: fix signal strength indication 2016-02-11 20:03:56 -08:00
os_dep Staging: rtl8188eu: os_dep: Remove NULL test before rtw_free_netdev 2016-02-14 16:44:06 -08:00
Kconfig staging: rtl8188eu: Fix build error when CFG80211 is not selected 2015-09-29 04:27:22 +02:00
Makefile staging: rtl8188eu: provide an absolute path to include folder 2016-02-07 19:00:46 -08:00
TODO staging: rtl8*: fix my email address up 2016-02-11 19:33:46 -08:00