Commit 60d5f66c authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman

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: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e3809253
...@@ -862,7 +862,7 @@ u8 dim_service_channel(struct dim_channel *ch) ...@@ -862,7 +862,7 @@ u8 dim_service_channel(struct dim_channel *ch)
return channel_service(ch); return channel_service(ch);
} }
struct dim_ch_state_t *DIM_GetChannelState(struct dim_channel *ch, struct dim_ch_state_t *dim_get_channel_state(struct dim_channel *ch,
struct dim_ch_state_t *state_ptr) struct dim_ch_state_t *state_ptr)
{ {
if (!ch || !state_ptr) if (!ch || !state_ptr)
......
...@@ -95,7 +95,7 @@ void dim_service_irq(struct dim_channel *const *channels); ...@@ -95,7 +95,7 @@ void dim_service_irq(struct dim_channel *const *channels);
u8 dim_service_channel(struct dim_channel *ch); u8 dim_service_channel(struct dim_channel *ch);
struct dim_ch_state_t *DIM_GetChannelState(struct dim_channel *ch, struct dim_ch_state_t *dim_get_channel_state(struct dim_channel *ch,
struct dim_ch_state_t *state_ptr); struct dim_ch_state_t *state_ptr);
bool DIM_EnqueueBuffer(struct dim_channel *ch, u32 buffer_addr, bool DIM_EnqueueBuffer(struct dim_channel *ch, u32 buffer_addr,
......
...@@ -246,7 +246,7 @@ static int try_start_dim_transfer(struct hdm_channel *hdm_ch) ...@@ -246,7 +246,7 @@ static int try_start_dim_transfer(struct hdm_channel *hdm_ch)
return -EAGAIN; return -EAGAIN;
} }
if (!DIM_GetChannelState(&hdm_ch->ch, &st)->ready) { if (!dim_get_channel_state(&hdm_ch->ch, &st)->ready) {
spin_unlock_irqrestore(&dim_lock, flags); spin_unlock_irqrestore(&dim_lock, flags);
return -EAGAIN; return -EAGAIN;
} }
...@@ -340,7 +340,7 @@ static void service_done_flag(struct dim2_hdm *dev, int ch_idx) ...@@ -340,7 +340,7 @@ static void service_done_flag(struct dim2_hdm *dev, int ch_idx)
spin_lock_irqsave(&dim_lock, flags); spin_lock_irqsave(&dim_lock, flags);
done_buffers = DIM_GetChannelState(&hdm_ch->ch, &st)->done_buffers; done_buffers = dim_get_channel_state(&hdm_ch->ch, &st)->done_buffers;
if (!done_buffers) { if (!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