Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: most: rename DIM_EnqueueBuffer to dim_enqueue_buffer

This patch renames DIM_EnqueueBuffer to dim_enqueue_buffer to avoid
camelcase found by checkpatch.

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

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Chaehyun Lim and committed by
Greg Kroah-Hartman
c904ffda 60d5f66c

+7 -6
+2 -1
drivers/staging/most/hdm-dim2/dim2_hal.c
··· 874 874 return state_ptr; 875 875 } 876 876 877 - bool DIM_EnqueueBuffer(struct dim_channel *ch, u32 buffer_addr, u16 buffer_size) 877 + bool dim_enqueue_buffer(struct dim_channel *ch, u32 buffer_addr, 878 + u16 buffer_size) 878 879 { 879 880 if (!ch) 880 881 return dim_on_error(DIM_ERR_DRIVER_NOT_INITIALIZED,
+2 -2
drivers/staging/most/hdm-dim2/dim2_hal.h
··· 98 98 struct dim_ch_state_t *dim_get_channel_state(struct dim_channel *ch, 99 99 struct dim_ch_state_t *state_ptr); 100 100 101 - bool DIM_EnqueueBuffer(struct dim_channel *ch, u32 buffer_addr, 102 - u16 buffer_size); 101 + bool dim_enqueue_buffer(struct dim_channel *ch, u32 buffer_addr, 102 + u16 buffer_size); 103 103 104 104 bool dim_detach_buffers(struct dim_channel *ch, u16 buffers_number); 105 105
+3 -3
drivers/staging/most/hdm-dim2/dim2_hdm.c
··· 73 73 char name[sizeof "caNNN"]; 74 74 bool is_initialized; 75 75 struct dim_channel ch; 76 - struct list_head pending_list; /* before DIM_EnqueueBuffer() */ 77 - struct list_head started_list; /* after DIM_EnqueueBuffer() */ 76 + struct list_head pending_list; /* before dim_enqueue_buffer() */ 77 + struct list_head started_list; /* after dim_enqueue_buffer() */ 78 78 enum most_channel_direction direction; 79 79 enum most_channel_data_type data_type; 80 80 }; ··· 255 255 buf_size = mbo->buffer_length; 256 256 257 257 BUG_ON(mbo->bus_address == 0); 258 - if (!DIM_EnqueueBuffer(&hdm_ch->ch, mbo->bus_address, buf_size)) { 258 + if (!dim_enqueue_buffer(&hdm_ch->ch, mbo->bus_address, buf_size)) { 259 259 list_del(head->next); 260 260 spin_unlock_irqrestore(&dim_lock, flags); 261 261 mbo->processed_length = 0;