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

staging: most: rename DIM_GetChannelState to dim_get_channel_state

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>

authored by

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

+6 -6
+2 -2
drivers/staging/most/hdm-dim2/dim2_hal.c
··· 862 862 return channel_service(ch); 863 863 } 864 864 865 - struct dim_ch_state_t *DIM_GetChannelState(struct dim_channel *ch, 866 - struct dim_ch_state_t *state_ptr) 865 + struct dim_ch_state_t *dim_get_channel_state(struct dim_channel *ch, 866 + struct dim_ch_state_t *state_ptr) 867 867 { 868 868 if (!ch || !state_ptr) 869 869 return NULL;
+2 -2
drivers/staging/most/hdm-dim2/dim2_hal.h
··· 95 95 96 96 u8 dim_service_channel(struct dim_channel *ch); 97 97 98 - struct dim_ch_state_t *DIM_GetChannelState(struct dim_channel *ch, 99 - struct dim_ch_state_t *state_ptr); 98 + struct dim_ch_state_t *dim_get_channel_state(struct dim_channel *ch, 99 + struct dim_ch_state_t *state_ptr); 100 100 101 101 bool DIM_EnqueueBuffer(struct dim_channel *ch, u32 buffer_addr, 102 102 u16 buffer_size);
+2 -2
drivers/staging/most/hdm-dim2/dim2_hdm.c
··· 246 246 return -EAGAIN; 247 247 } 248 248 249 - if (!DIM_GetChannelState(&hdm_ch->ch, &st)->ready) { 249 + if (!dim_get_channel_state(&hdm_ch->ch, &st)->ready) { 250 250 spin_unlock_irqrestore(&dim_lock, flags); 251 251 return -EAGAIN; 252 252 } ··· 340 340 341 341 spin_lock_irqsave(&dim_lock, flags); 342 342 343 - done_buffers = DIM_GetChannelState(&hdm_ch->ch, &st)->done_buffers; 343 + done_buffers = dim_get_channel_state(&hdm_ch->ch, &st)->done_buffers; 344 344 if (!done_buffers) { 345 345 spin_unlock_irqrestore(&dim_lock, flags); 346 346 return;