linux-xiaomi-chiron/drivers/staging/rtl8192e
Vaishali Thakkar 0f24cd7062 Staging: rtl8192e: Use put_unaligned_le16
This patch introduces the use of function put_unaligned_le16.

This is done using Coccinelle and semantic patch used is as follows:

@@ 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

Here, to be compatible with the change header file is added too.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-11-03 16:09:27 -08:00
..
rtl8192e staging: rtl8192e: delete successive assignments to the same location 2014-10-28 15:53:25 +08:00
dot11d.c staging: rtl8192e: fixed coding style issues 2014-08-30 13:54:03 -07:00
dot11d.h staging:rtl8192e: Rewrite macro definition as static inline function. 2013-11-10 12:05:47 -08:00
Kconfig staging: r8192e: Fix possible error in configuration 2012-04-18 16:58:16 -07:00
license
Makefile staging/rtl8192e: Register against lib80211 2011-12-22 13:48:59 -08:00
rtl819x_BA.h
rtl819x_BAProc.c Staging: rtl8192e: Use put_unaligned_le16 2014-11-03 16:09:27 -08:00
rtl819x_HT.h
rtl819x_HTProc.c staging: rtl8192e: Fix void function return statements style 2014-10-02 11:56:43 -07:00
rtl819x_Qos.h rtl8192e: Removing unused defines in rtl819x_Qos.h 2013-12-20 11:41:28 -08:00
rtl819x_TS.h staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part VI 2011-08-25 10:05:11 -07:00
rtl819x_TSProc.c Staging: rtl8192e: Fix space before semicolon warning 2014-09-19 17:14:30 -07:00
rtllib.h staging, rtl8192e, LLVMLinux: Remove unused prototype 2014-10-29 16:33:05 -07:00
rtllib_crypt.c Staging rtl8192e: Fixing checkpatch errors 2014-01-09 10:29:37 -08:00
rtllib_crypt.h staging/rtl8192e: Convert to lib80211_crypt_info 2011-12-22 13:48:59 -08:00
rtllib_crypt_ccmp.c Staging: rtl8192e: Fix style warnings relating to printk(KERN_DEBUG 2014-09-19 17:11:06 -07:00
rtllib_crypt_tkip.c staging: rtl8192e: fixed coding style issues 2014-08-30 13:54:03 -07:00
rtllib_crypt_wep.c Staging: rtl8192e: Fix printk debug style warning 2014-09-19 17:14:30 -07:00
rtllib_debug.h Staging rtl8192e: Correcting wrong usage of macro in r8192E_phy.c and removing corresponding warning in rtllib_debug.h 2014-01-09 10:32:18 -08:00
rtllib_endianfree.h rlt8192e: Removing unused defines in rltlib_endianfree.h 2013-12-20 11:41:28 -08:00
rtllib_module.c staging: rtl8192e: fixed coding style issues 2014-08-30 13:54:03 -07:00
rtllib_rx.c staging: rtl8192e: Remove unnecessary code 2014-10-27 10:33:06 +08:00
rtllib_softmac.c staging, rtl8192e, LLVMLinux: Make static local in inline function const 2014-10-29 16:33:05 -07:00
rtllib_softmac_wx.c Staging: rtl8192e: Remove unused variable 2014-09-28 23:39:27 -04:00
rtllib_tx.c staging: rtl8192e: Remove unneeded void return 2014-10-02 11:56:43 -07:00
rtllib_wx.c staging: rtl8192e: fixed coding style issues 2014-08-30 13:54:03 -07:00
TODO