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

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

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 a470900ccf4cfa8e5b41c151a31c941f9f7e0573..8cca18e9f38f594126d29798b79a184ff28da687 100644 (file)
@@ -706,7 +706,7 @@ static u8 init_ctrl_async(struct dim_channel *ch, u8 type, u8 is_tx,
        return DIM_NO_ERROR;
 }
 
-u16 DIM_NormCtrlAsyncBufferSize(u16 buf_size)
+u16 dim_norm_ctrl_async_buffer_size(u16 buf_size)
 {
        return norm_ctrl_async_buffer_size(buf_size);
 }
index 5a866da2a12860658054ce8f835a62ced75cfa1b..f5640485c5baa654a1da561c9a41b68c35351191 100644 (file)
@@ -71,7 +71,7 @@ void dim_shutdown(void);
 
 bool dim_get_lock_state(void);
 
-u16 DIM_NormCtrlAsyncBufferSize(u16 buf_size);
+u16 dim_norm_ctrl_async_buffer_size(u16 buf_size);
 
 u16 DIM_NormIsocBufferSize(u16 buf_size, u16 packet_length);
 
index 1b792f1861c22d3041c300228edce347333af306..6e583d46181f2d656acfc954a6df7a9787b937df 100644 (file)
@@ -534,7 +534,7 @@ static int configure_channel(struct most_interface *most_iface, int ch_idx,
 
        switch (ccfg->data_type) {
        case MOST_CH_CONTROL:
-               new_size = DIM_NormCtrlAsyncBufferSize(buf_size);
+               new_size = dim_norm_ctrl_async_buffer_size(buf_size);
                if (new_size == 0) {
                        pr_err("%s: too small buffer size\n", hdm_ch->name);
                        return -EINVAL;
@@ -548,7 +548,7 @@ static int configure_channel(struct most_interface *most_iface, int ch_idx,
                                          buf_size);
                break;
        case MOST_CH_ASYNC:
-               new_size = DIM_NormCtrlAsyncBufferSize(buf_size);
+               new_size = dim_norm_ctrl_async_buffer_size(buf_size);
                if (new_size == 0) {
                        pr_err("%s: too small buffer size\n", hdm_ch->name);
                        return -EINVAL;