staging: most: rename DIM_DetachBuffers to dim_detach_buffers
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 29 Oct 2015 07:44:13 +0000 (16:44 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch renames DIM_DetachBuffers to dim_detach_buffers to avoid
camelcase found by checkpatch.

CHECK: Avoid CamelCase: <DIM_DetachBuffers>
FILE: drivers/staging/most/hdm-dim2/dim2_hal.c:886:

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 e296adb64a1d0ab4176edfc18b538673b737975e..9bf952d57cc7b5c76d2ed68c65788616ec41d38a 100644 (file)
@@ -883,7 +883,7 @@ bool DIM_EnqueueBuffer(struct dim_channel *ch, u32 buffer_addr, u16 buffer_size)
        return channel_start(ch, buffer_addr, buffer_size);
 }
 
-bool DIM_DetachBuffers(struct dim_channel *ch, u16 buffers_number)
+bool dim_detach_buffers(struct dim_channel *ch, u16 buffers_number)
 {
        if (!ch)
                return dim_on_error(DIM_ERR_DRIVER_NOT_INITIALIZED,
index 8b18f74c0837325c181a535bcb04b05ce5c0ad13..54dbfc4953eb9b1fd848fab0ab641a25909228ea 100644 (file)
@@ -101,7 +101,7 @@ struct dim_ch_state_t *DIM_GetChannelState(struct dim_channel *ch,
 bool DIM_EnqueueBuffer(struct dim_channel *ch, u32 buffer_addr,
                       u16 buffer_size);
 
-bool DIM_DetachBuffers(struct dim_channel *ch, u16 buffers_number);
+bool dim_detach_buffers(struct dim_channel *ch, u16 buffers_number);
 
 u32 DIMCB_IoRead(u32 *ptr32);
 
index 9c99f65d5ed5a182d1f0ae3fa82b5dd044e22e99..3f36aa6548aff14276817e30f6b067d706781340 100644 (file)
@@ -346,7 +346,7 @@ static void service_done_flag(struct dim2_hdm *dev, int ch_idx)
                return;
        }
 
-       if (!DIM_DetachBuffers(&hdm_ch->ch, done_buffers)) {
+       if (!dim_detach_buffers(&hdm_ch->ch, done_buffers)) {
                spin_unlock_irqrestore(&dim_lock, flags);
                return;
        }