Commit 38c38544 authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman

staging: most: rename DIM_DetachBuffers to dim_detach_buffers

This patch renames DIM_DetachBuffers to dim_detach_buffers to avoid
camelcase found by checkpatch.

CHECK: Avoid CamelCase: <DIM_DetachBuffers>
FILE: drivers/staging/most/hdm-dim2/dim2_hal.c:886:
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 50a45b17
...@@ -883,7 +883,7 @@ bool DIM_EnqueueBuffer(struct dim_channel *ch, u32 buffer_addr, u16 buffer_size) ...@@ -883,7 +883,7 @@ bool DIM_EnqueueBuffer(struct dim_channel *ch, u32 buffer_addr, u16 buffer_size)
return channel_start(ch, buffer_addr, buffer_size); return channel_start(ch, buffer_addr, buffer_size);
} }
bool DIM_DetachBuffers(struct dim_channel *ch, u16 buffers_number) bool dim_detach_buffers(struct dim_channel *ch, u16 buffers_number)
{ {
if (!ch) if (!ch)
return dim_on_error(DIM_ERR_DRIVER_NOT_INITIALIZED, return dim_on_error(DIM_ERR_DRIVER_NOT_INITIALIZED,
......
...@@ -101,7 +101,7 @@ struct dim_ch_state_t *DIM_GetChannelState(struct dim_channel *ch, ...@@ -101,7 +101,7 @@ struct dim_ch_state_t *DIM_GetChannelState(struct dim_channel *ch,
bool DIM_EnqueueBuffer(struct dim_channel *ch, u32 buffer_addr, bool DIM_EnqueueBuffer(struct dim_channel *ch, u32 buffer_addr,
u16 buffer_size); u16 buffer_size);
bool DIM_DetachBuffers(struct dim_channel *ch, u16 buffers_number); bool dim_detach_buffers(struct dim_channel *ch, u16 buffers_number);
u32 DIMCB_IoRead(u32 *ptr32); u32 DIMCB_IoRead(u32 *ptr32);
......
...@@ -346,7 +346,7 @@ static void service_done_flag(struct dim2_hdm *dev, int ch_idx) ...@@ -346,7 +346,7 @@ static void service_done_flag(struct dim2_hdm *dev, int ch_idx)
return; return;
} }
if (!DIM_DetachBuffers(&hdm_ch->ch, done_buffers)) { if (!dim_detach_buffers(&hdm_ch->ch, done_buffers)) {
spin_unlock_irqrestore(&dim_lock, flags); spin_unlock_irqrestore(&dim_lock, flags);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment