staging: most: rename DIM_GetLockState to dim_get_lock_state
authorChaehyun Lim <chaehyun.lim@gmail.com>
Mon, 2 Nov 2015 13:59:01 +0000 (22:59 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch renames DIM_GetLockState to dim_get_lock_state to avoid
camelcase found by checkpatch.

CHECK: Avoid CamelCase: <DIM_GetLockState>
FILE: drivers/staging/most/hdm-dim2/dim2_hdm.c:131:

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-dim2/dim2_hal.c
drivers/staging/most/hdm-dim2/dim2_hal.h
drivers/staging/most/hdm-dim2/dim2_hdm.c

index 9bf952d57cc7b5c76d2ed68c65788616ec41d38a..2610ad2030c1eba01c5c726adefa757b3558e1bd 100644 (file)
@@ -679,7 +679,7 @@ void dim_shutdown(void)
        dim2_cleanup();
 }
 
-bool DIM_GetLockState(void)
+bool dim_get_lock_state(void)
 {
        return dim2_is_mlb_locked();
 }
index 54dbfc4953eb9b1fd848fab0ab641a25909228ea..323ac2d052a23bce4b7f9b940aab2fe7f61d449d 100644 (file)
@@ -69,7 +69,7 @@ u8 dim_startup(void *dim_base_address, u32 mlb_clock);
 
 void dim_shutdown(void);
 
-bool DIM_GetLockState(void);
+bool dim_get_lock_state(void);
 
 u16 DIM_NormCtrlAsyncBufferSize(u16 buf_size);
 
index 3f36aa6548aff14276817e30f6b067d706781340..fdaf9d2a6a7299f63e3b8fabca7faca553f01f37 100644 (file)
@@ -128,7 +128,7 @@ bool dim2_sysfs_get_state_cb(void)
        unsigned long flags;
 
        spin_lock_irqsave(&dim_lock, flags);
-       state = DIM_GetLockState();
+       state = dim_get_lock_state();
        spin_unlock_irqrestore(&dim_lock, flags);
 
        return state;