Commit 3e4a7b81 authored by Amarjargal Gundjalam's avatar Amarjargal Gundjalam Committed by Greg Kroah-Hartman

staging/crystalhd: Fixes line over 80 characters warning in crystalhd_cmds.*

Fixes the following checkpatch warning
WARNING: line over 80 characters
Signed-off-by: default avatarAmarjargal Gundjalam <amarjargal16@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 12dfa2e3
...@@ -472,8 +472,8 @@ static enum BC_STATUS bc_cproc_hw_txdma(struct crystalhd_cmd *ctx, ...@@ -472,8 +472,8 @@ static enum BC_STATUS bc_cproc_hw_txdma(struct crystalhd_cmd *ctx,
} }
/* Helper function to check on user buffers */ /* Helper function to check on user buffers */
static enum BC_STATUS bc_cproc_check_inbuffs(bool pin, void *ubuff, uint32_t ub_sz, static enum BC_STATUS bc_cproc_check_inbuffs(bool pin, void *ubuff,
uint32_t uv_off, bool en_422) uint32_t ub_sz, uint32_t uv_off, bool en_422)
{ {
if (!ubuff || !ub_sz) { if (!ubuff || !ub_sz) {
BCMLOG_ERR("%s->Invalid Arg %p %x\n", BCMLOG_ERR("%s->Invalid Arg %p %x\n",
...@@ -483,8 +483,9 @@ static enum BC_STATUS bc_cproc_check_inbuffs(bool pin, void *ubuff, uint32_t ub_ ...@@ -483,8 +483,9 @@ static enum BC_STATUS bc_cproc_check_inbuffs(bool pin, void *ubuff, uint32_t ub_
/* Check for alignment */ /* Check for alignment */
if (((uintptr_t)ubuff) & 0x03) { if (((uintptr_t)ubuff) & 0x03) {
BCMLOG_ERR("%s-->Un-aligned address not implemented yet.. %p\n", BCMLOG_ERR(
((pin) ? "TX" : "RX"), ubuff); "%s-->Un-aligned address not implemented yet.. %p\n",
((pin) ? "TX" : "RX"), ubuff);
return BC_STS_NOT_IMPL; return BC_STS_NOT_IMPL;
} }
if (pin) if (pin)
...@@ -572,7 +573,8 @@ static enum BC_STATUS bc_cproc_add_cap_buff(struct crystalhd_cmd *ctx, ...@@ -572,7 +573,8 @@ static enum BC_STATUS bc_cproc_add_cap_buff(struct crystalhd_cmd *ctx,
if (!dio_hnd) if (!dio_hnd)
return BC_STS_ERROR; return BC_STS_ERROR;
sts = crystalhd_hw_add_cap_buffer(&ctx->hw_ctx, dio_hnd, (ctx->state == BC_LINK_READY)); sts = crystalhd_hw_add_cap_buffer(&ctx->hw_ctx, dio_hnd,
(ctx->state == BC_LINK_READY));
if ((sts != BC_STS_SUCCESS) && (sts != BC_STS_BUSY)) { if ((sts != BC_STS_SUCCESS) && (sts != BC_STS_BUSY)) {
crystalhd_unmap_dio(ctx->adp, dio_hnd); crystalhd_unmap_dio(ctx->adp, dio_hnd);
return sts; return sts;
...@@ -618,7 +620,8 @@ static enum BC_STATUS bc_cproc_fetch_frame(struct crystalhd_cmd *ctx, ...@@ -618,7 +620,8 @@ static enum BC_STATUS bc_cproc_fetch_frame(struct crystalhd_cmd *ctx,
sts = crystalhd_hw_get_cap_buffer(&ctx->hw_ctx, &frame->PibInfo, &dio); sts = crystalhd_hw_get_cap_buffer(&ctx->hw_ctx, &frame->PibInfo, &dio);
if (sts != BC_STS_SUCCESS) if (sts != BC_STS_SUCCESS)
return (ctx->state & BC_LINK_SUSPEND) ? BC_STS_IO_USER_ABORT : sts; return (ctx->state & BC_LINK_SUSPEND) ?
BC_STS_IO_USER_ABORT : sts;
frame->Flags = dio->uinfo.comp_flags; frame->Flags = dio->uinfo.comp_flags;
...@@ -673,7 +676,8 @@ static enum BC_STATUS bc_cproc_flush_cap_buffs(struct crystalhd_cmd *ctx, ...@@ -673,7 +676,8 @@ static enum BC_STATUS bc_cproc_flush_cap_buffs(struct crystalhd_cmd *ctx,
frame = &idata->udata.u.DecOutData; frame = &idata->udata.u.DecOutData;
for (count = 0; count < BC_RX_LIST_CNT; count++) { for (count = 0; count < BC_RX_LIST_CNT; count++) {
sts = crystalhd_hw_get_cap_buffer(&ctx->hw_ctx, &frame->PibInfo, &dio); sts = crystalhd_hw_get_cap_buffer(&ctx->hw_ctx,
&frame->PibInfo, &dio);
if (sts != BC_STS_SUCCESS) if (sts != BC_STS_SUCCESS)
break; break;
...@@ -916,7 +920,8 @@ enum BC_STATUS crystalhd_user_open(struct crystalhd_cmd *ctx, ...@@ -916,7 +920,8 @@ enum BC_STATUS crystalhd_user_open(struct crystalhd_cmd *ctx,
* Closer application handle and release app specific * Closer application handle and release app specific
* resources. * resources.
*/ */
enum BC_STATUS crystalhd_user_close(struct crystalhd_cmd *ctx, struct crystalhd_user *uc) enum BC_STATUS crystalhd_user_close(struct crystalhd_cmd *ctx,
struct crystalhd_user *uc)
{ {
uint32_t mode = uc->mode; uint32_t mode = uc->mode;
...@@ -1008,8 +1013,8 @@ enum BC_STATUS crystalhd_delete_cmd_context(struct crystalhd_cmd *ctx) ...@@ -1008,8 +1013,8 @@ enum BC_STATUS crystalhd_delete_cmd_context(struct crystalhd_cmd *ctx)
* mode of operation and returns the function pointer * mode of operation and returns the function pointer
* from the cproc table. * from the cproc table.
*/ */
crystalhd_cmd_proc crystalhd_get_cmd_proc(struct crystalhd_cmd *ctx, uint32_t cmd, crystalhd_cmd_proc crystalhd_get_cmd_proc(struct crystalhd_cmd *ctx,
struct crystalhd_user *uc) uint32_t cmd, struct crystalhd_user *uc)
{ {
crystalhd_cmd_proc cproc = NULL; crystalhd_cmd_proc cproc = NULL;
unsigned int i, tbl_sz; unsigned int i, tbl_sz;
...@@ -1024,7 +1029,8 @@ crystalhd_cmd_proc crystalhd_get_cmd_proc(struct crystalhd_cmd *ctx, uint32_t cm ...@@ -1024,7 +1029,8 @@ crystalhd_cmd_proc crystalhd_get_cmd_proc(struct crystalhd_cmd *ctx, uint32_t cm
return NULL; return NULL;
} }
tbl_sz = sizeof(g_crystalhd_cproc_tbl) / sizeof(struct crystalhd_cmd_tbl); tbl_sz = sizeof(g_crystalhd_cproc_tbl) /
sizeof(struct crystalhd_cmd_tbl);
for (i = 0; i < tbl_sz; i++) { for (i = 0; i < tbl_sz; i++) {
if (g_crystalhd_cproc_tbl[i].cmd_id == cmd) { if (g_crystalhd_cproc_tbl[i].cmd_id == cmd) {
if ((uc->mode == DTS_MONITOR_MODE) && if ((uc->mode == DTS_MONITOR_MODE) &&
......
...@@ -66,7 +66,8 @@ struct crystalhd_cmd { ...@@ -66,7 +66,8 @@ struct crystalhd_cmd {
struct crystalhd_hw hw_ctx; struct crystalhd_hw hw_ctx;
}; };
typedef enum BC_STATUS(*crystalhd_cmd_proc)(struct crystalhd_cmd *, struct crystalhd_ioctl_data *); typedef enum BC_STATUS(*crystalhd_cmd_proc)(struct crystalhd_cmd *,
struct crystalhd_ioctl_data *);
struct crystalhd_cmd_tbl { struct crystalhd_cmd_tbl {
uint32_t cmd_id; uint32_t cmd_id;
...@@ -74,13 +75,17 @@ struct crystalhd_cmd_tbl { ...@@ -74,13 +75,17 @@ struct crystalhd_cmd_tbl {
uint32_t block_mon; uint32_t block_mon;
}; };
enum BC_STATUS crystalhd_suspend(struct crystalhd_cmd *ctx, struct crystalhd_ioctl_data *idata); enum BC_STATUS crystalhd_suspend(struct crystalhd_cmd *ctx,
struct crystalhd_ioctl_data *idata);
enum BC_STATUS crystalhd_resume(struct crystalhd_cmd *ctx); enum BC_STATUS crystalhd_resume(struct crystalhd_cmd *ctx);
crystalhd_cmd_proc crystalhd_get_cmd_proc(struct crystalhd_cmd *ctx, uint32_t cmd, crystalhd_cmd_proc crystalhd_get_cmd_proc(struct crystalhd_cmd *ctx,
struct crystalhd_user *uc); uint32_t cmd, struct crystalhd_user *uc);
enum BC_STATUS crystalhd_user_open(struct crystalhd_cmd *ctx, struct crystalhd_user **user_ctx); enum BC_STATUS crystalhd_user_open(struct crystalhd_cmd *ctx,
enum BC_STATUS crystalhd_user_close(struct crystalhd_cmd *ctx, struct crystalhd_user *uc); struct crystalhd_user **user_ctx);
enum BC_STATUS crystalhd_setup_cmd_context(struct crystalhd_cmd *ctx, struct crystalhd_adp *adp); enum BC_STATUS crystalhd_user_close(struct crystalhd_cmd *ctx,
struct crystalhd_user *uc);
enum BC_STATUS crystalhd_setup_cmd_context(struct crystalhd_cmd *ctx,
struct crystalhd_adp *adp);
enum BC_STATUS crystalhd_delete_cmd_context(struct crystalhd_cmd *ctx); enum BC_STATUS crystalhd_delete_cmd_context(struct crystalhd_cmd *ctx);
bool crystalhd_cmd_interrupt(struct crystalhd_cmd *ctx); bool crystalhd_cmd_interrupt(struct crystalhd_cmd *ctx);
......
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