staging: rtl8192e: rename function cpMacAddr to copy_mac_addr - style
authorHimadri Pandya <himadri18.07@gmail.com>
Tue, 12 Feb 2019 20:17:11 +0000 (01:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Feb 2019 18:43:34 +0000 (19:43 +0100)
Rename function cpMacAddr to copy_mac_addr in order to fix checkpatch
warning: Avoid CamelCase and make the function name more readable,
understandable.

Signed-off-by: Himadri Pandya <himadri18.07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/dot11d.h

index 548b7206c0dbc9ad0ff4ad3bcb2e500d935f7a9a..cbf6337193d6780e19c9002ea8c3dd3990d1f454 100644 (file)
@@ -53,7 +53,7 @@ struct rt_dot11d_info {
        enum dot11d_state state;
 };
 
-static inline void cpMacAddr(unsigned char *des, unsigned char *src)
+static inline void copy_mac_addr(unsigned char *des, unsigned char *src)
 {
        memcpy(des, src, 6);
 }
@@ -70,7 +70,7 @@ static inline void cpMacAddr(unsigned char *des, unsigned char *src)
         ether_addr_equal_unaligned( \
                GET_DOT11D_INFO(__pIeeeDev)->country_src_addr, __pTa)
 #define UPDATE_CIE_SRC(__pIeeeDev, __pTa)              \
-       cpMacAddr(GET_DOT11D_INFO(__pIeeeDev)->country_src_addr, __pTa)
+       copy_mac_addr(GET_DOT11D_INFO(__pIeeeDev)->country_src_addr, __pTa)
 
 #define GET_CIE_WATCHDOG(__pIeeeDev)                           \
         (GET_DOT11D_INFO(__pIeeeDev)->country_watchdog)