]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: most: rename DIM_GetChannelState to dim_get_channel_state
authorChaehyun Lim <chaehyun.lim@gmail.com>
Mon, 2 Nov 2015 13:59:16 +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_GetChannelState to dim_get_channel_state to avoid
camelcase found by checkpatch.

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

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 a96457c60f6d0c1452484e4b3f5d09074e282a14..e80a12ec0db4a58f91296dae38e334e6a4033dcb 100644 (file)
@@ -862,8 +862,8 @@ u8 dim_service_channel(struct dim_channel *ch)
        return channel_service(ch);
 }
 
-struct dim_ch_state_t *DIM_GetChannelState(struct dim_channel *ch,
-                                          struct dim_ch_state_t *state_ptr)
+struct dim_ch_state_t *dim_get_channel_state(struct dim_channel *ch,
+                                            struct dim_ch_state_t *state_ptr)
 {
        if (!ch || !state_ptr)
                return NULL;
index 76e4a62f2f2040879f79b8adad68664eab8b0f26..1ca7a1a2e0c58bfa9a168c1b4316dc727e32e9f9 100644 (file)
@@ -95,8 +95,8 @@ void dim_service_irq(struct dim_channel *const *channels);
 
 u8 dim_service_channel(struct dim_channel *ch);
 
-struct dim_ch_state_t *DIM_GetChannelState(struct dim_channel *ch,
-                                          struct dim_ch_state_t *state_ptr);
+struct dim_ch_state_t *dim_get_channel_state(struct dim_channel *ch,
+                                            struct dim_ch_state_t *state_ptr);
 
 bool DIM_EnqueueBuffer(struct dim_channel *ch, u32 buffer_addr,
                       u16 buffer_size);
index 4b5df0b06008b209bb8e68dcb0b5d3266c675389..6524c3ce96856a38854e5f824b3e5af62a329842 100644 (file)
@@ -246,7 +246,7 @@ static int try_start_dim_transfer(struct hdm_channel *hdm_ch)
                return -EAGAIN;
        }
 
-       if (!DIM_GetChannelState(&hdm_ch->ch, &st)->ready) {
+       if (!dim_get_channel_state(&hdm_ch->ch, &st)->ready) {
                spin_unlock_irqrestore(&dim_lock, flags);
                return -EAGAIN;
        }
@@ -340,7 +340,7 @@ static void service_done_flag(struct dim2_hdm *dev, int ch_idx)
 
        spin_lock_irqsave(&dim_lock, flags);
 
-       done_buffers = DIM_GetChannelState(&hdm_ch->ch, &st)->done_buffers;
+       done_buffers = dim_get_channel_state(&hdm_ch->ch, &st)->done_buffers;
        if (!done_buffers) {
                spin_unlock_irqrestore(&dim_lock, flags);
                return;