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

staging: most: rename DIM_NormIsocBufferSize to dim_norm_isoc_buffer_size

This patch renames DIM_NormIsocBufferSize to dim_norm_isoc_buffer_size
to avoid camelcase found by checkpatch.

CHECK: Avoid CamelCase: <DIM_NormIsocBufferSize>
FILE: drivers/staging/most/hdm-dim2/dim2_hal.c:720:
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c64c6073
...@@ -717,7 +717,7 @@ u16 dim_norm_ctrl_async_buffer_size(u16 buf_size) ...@@ -717,7 +717,7 @@ u16 dim_norm_ctrl_async_buffer_size(u16 buf_size)
* *
* Returns non-zero correct buffer size or zero by error. * Returns non-zero correct buffer size or zero by error.
*/ */
u16 DIM_NormIsocBufferSize(u16 buf_size, u16 packet_length) u16 dim_norm_isoc_buffer_size(u16 buf_size, u16 packet_length)
{ {
if (!check_packet_length(packet_length)) if (!check_packet_length(packet_length))
return 0; return 0;
......
...@@ -73,7 +73,7 @@ bool dim_get_lock_state(void); ...@@ -73,7 +73,7 @@ bool dim_get_lock_state(void);
u16 dim_norm_ctrl_async_buffer_size(u16 buf_size); u16 dim_norm_ctrl_async_buffer_size(u16 buf_size);
u16 DIM_NormIsocBufferSize(u16 buf_size, u16 packet_length); u16 dim_norm_isoc_buffer_size(u16 buf_size, u16 packet_length);
u16 DIM_NormSyncBufferSize(u16 buf_size, u16 bytes_per_frame); u16 DIM_NormSyncBufferSize(u16 buf_size, u16 bytes_per_frame);
......
...@@ -561,7 +561,7 @@ static int configure_channel(struct most_interface *most_iface, int ch_idx, ...@@ -561,7 +561,7 @@ static int configure_channel(struct most_interface *most_iface, int ch_idx,
hal_ret = DIM_InitAsync(&hdm_ch->ch, is_tx, ch_addr, buf_size); hal_ret = DIM_InitAsync(&hdm_ch->ch, is_tx, ch_addr, buf_size);
break; break;
case MOST_CH_ISOC_AVP: case MOST_CH_ISOC_AVP:
new_size = DIM_NormIsocBufferSize(buf_size, sub_size); new_size = dim_norm_isoc_buffer_size(buf_size, sub_size);
if (new_size == 0) { if (new_size == 0) {
pr_err("%s: invalid sub-buffer size or too small buffer size\n", pr_err("%s: invalid sub-buffer size or too small buffer size\n",
hdm_ch->name); hdm_ch->name);
......
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