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

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

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 6edabbdd0eedc2658d8ca246baade4291405ff14..a59bb50451a2bd51c548abcbb21de4893cc4febc 100644 (file)
@@ -746,8 +746,8 @@ u8 dim_init_control(struct dim_channel *ch, u8 is_tx, u16 ch_address,
                               max_buffer_size);
 }
 
-u8 DIM_InitAsync(struct dim_channel *ch, u8 is_tx, u16 ch_address,
-                u16 max_buffer_size)
+u8 dim_init_async(struct dim_channel *ch, u8 is_tx, u16 ch_address,
+                 u16 max_buffer_size)
 {
        return init_ctrl_async(ch, CAT_CT_VAL_ASYNC, is_tx, ch_address,
                               max_buffer_size);
index 7ab57c96c43dcbdbfc4c246d2be431bef1757fcd..8c60f7eab6926b444baf1efe275e17c5b754f45b 100644 (file)
@@ -80,8 +80,8 @@ u16 dim_norm_sync_buffer_size(u16 buf_size, u16 bytes_per_frame);
 u8 dim_init_control(struct dim_channel *ch, u8 is_tx, u16 ch_address,
                    u16 max_buffer_size);
 
-u8 DIM_InitAsync(struct dim_channel *ch, u8 is_tx, u16 ch_address,
-                u16 max_buffer_size);
+u8 dim_init_async(struct dim_channel *ch, u8 is_tx, u16 ch_address,
+                 u16 max_buffer_size);
 
 u8 DIM_InitIsoc(struct dim_channel *ch, u8 is_tx, u16 ch_address,
                u16 packet_length);
index 02cd10b881a76cc40bf5665c13c6d8a92f97b01c..4bc6c8e8b89a882d8babd5d9b0c435d238caa0e9 100644 (file)
@@ -558,7 +558,7 @@ static int configure_channel(struct most_interface *most_iface, int ch_idx,
                        pr_warn("%s: fixed buffer size (%d -> %d)\n",
                                hdm_ch->name, buf_size, new_size);
                spin_lock_irqsave(&dim_lock, flags);
-               hal_ret = DIM_InitAsync(&hdm_ch->ch, is_tx, ch_addr, buf_size);
+               hal_ret = dim_init_async(&hdm_ch->ch, is_tx, ch_addr, buf_size);
                break;
        case MOST_CH_ISOC_AVP:
                new_size = dim_norm_isoc_buffer_size(buf_size, sub_size);