[media] staging: as102: Fix CodingStyle errors in file as10x_cmd_cfg.c
Fix Linux kernel coding style (whitespace and indentation) errors in file as10x_cmd_cfg.c. No functional changes. Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Piotr Chmura <chmooreck@poczta.onet.pl> Signed-off-by: Sylwester Nawrocki <snjw23@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
c7a6c00194
commit
e2e02ca488
1 changed files with 108 additions and 110 deletions
|
@ -2,8 +2,6 @@
|
|||
|
||||
\file as10x_cmd_cfg.c
|
||||
|
||||
\version $Id$
|
||||
|
||||
\author: S. Martinelli
|
||||
|
||||
----------------------------------------------------------------------------\n
|
||||
|
@ -22,7 +20,8 @@
|
|||
#include <linux/kernel.h>
|
||||
#include "as102_drv.h"
|
||||
#elif defined(WIN32)
|
||||
#if defined(__BUILDMACHINE__) && (__BUILDMACHINE__ == WinDDK) /* win32 ddk implementation */
|
||||
#if defined(__BUILDMACHINE__) && (__BUILDMACHINE__ == WinDDK)
|
||||
/* win32 ddk implementation */
|
||||
#include "wdm.h"
|
||||
#include "Device.h"
|
||||
#include "endian_mgmt.h" /* FIXME */
|
||||
|
@ -80,17 +79,17 @@ int as10x_cmd_get_context(as10x_handle_t *phandle, uint16_t tag,
|
|||
if (phandle->ops->xfer_cmd) {
|
||||
error = phandle->ops->xfer_cmd(phandle,
|
||||
(uint8_t *) pcmd,
|
||||
sizeof(pcmd->body.context.req) + HEADER_SIZE,
|
||||
sizeof(pcmd->body.context.req)
|
||||
+ HEADER_SIZE,
|
||||
(uint8_t *) prsp,
|
||||
sizeof(prsp->body.context.rsp) + HEADER_SIZE);
|
||||
}
|
||||
else{
|
||||
sizeof(prsp->body.context.rsp)
|
||||
+ HEADER_SIZE);
|
||||
} else {
|
||||
error = AS10X_CMD_ERROR;
|
||||
}
|
||||
|
||||
if(error < 0) {
|
||||
if (error < 0)
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* parse response: context command do not follow the common response */
|
||||
/* structure -> specific handling response parse required */
|
||||
|
@ -104,7 +103,7 @@ int as10x_cmd_get_context(as10x_handle_t *phandle, uint16_t tag,
|
|||
|
||||
out:
|
||||
LEAVE();
|
||||
return(error);
|
||||
return error;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -127,7 +126,8 @@ int as10x_cmd_set_context(as10x_handle_t *phandle, uint16_t tag,
|
|||
prsp = phandle->rsp;
|
||||
|
||||
/* prepare command */
|
||||
as10x_cmd_build(pcmd,(++phandle->cmd_xid),sizeof(pcmd->body.context.req));
|
||||
as10x_cmd_build(pcmd, (++phandle->cmd_xid),
|
||||
sizeof(pcmd->body.context.req));
|
||||
|
||||
/* fill command */
|
||||
pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT);
|
||||
|
@ -140,17 +140,17 @@ int as10x_cmd_set_context(as10x_handle_t *phandle, uint16_t tag,
|
|||
if (phandle->ops->xfer_cmd) {
|
||||
error = phandle->ops->xfer_cmd(phandle,
|
||||
(uint8_t *) pcmd,
|
||||
sizeof(pcmd->body.context.req) + HEADER_SIZE,
|
||||
sizeof(pcmd->body.context.req)
|
||||
+ HEADER_SIZE,
|
||||
(uint8_t *) prsp,
|
||||
sizeof(prsp->body.context.rsp) + HEADER_SIZE);
|
||||
}
|
||||
else{
|
||||
sizeof(prsp->body.context.rsp)
|
||||
+ HEADER_SIZE);
|
||||
} else {
|
||||
error = AS10X_CMD_ERROR;
|
||||
}
|
||||
|
||||
if(error < 0) {
|
||||
if (error < 0)
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* parse response: context command do not follow the common response */
|
||||
/* structure -> specific handling response parse required */
|
||||
|
@ -158,7 +158,7 @@ int as10x_cmd_set_context(as10x_handle_t *phandle, uint16_t tag,
|
|||
|
||||
out:
|
||||
LEAVE();
|
||||
return(error);
|
||||
return error;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -194,26 +194,24 @@ int as10x_cmd_eLNA_change_mode(as10x_handle_t *phandle, uint8_t mode)
|
|||
|
||||
/* send command */
|
||||
if (phandle->ops->xfer_cmd) {
|
||||
error = phandle->ops->xfer_cmd(phandle,
|
||||
(uint8_t *) pcmd,
|
||||
sizeof(pcmd->body.cfg_change_mode.req) + HEADER_SIZE,
|
||||
(uint8_t *) prsp,
|
||||
sizeof(prsp->body.cfg_change_mode.rsp) + HEADER_SIZE);
|
||||
}
|
||||
else{
|
||||
error = phandle->ops->xfer_cmd(phandle, (uint8_t *) pcmd,
|
||||
sizeof(pcmd->body.cfg_change_mode.req)
|
||||
+ HEADER_SIZE, (uint8_t *) prsp,
|
||||
sizeof(prsp->body.cfg_change_mode.rsp)
|
||||
+ HEADER_SIZE);
|
||||
} else {
|
||||
error = AS10X_CMD_ERROR;
|
||||
}
|
||||
|
||||
if(error < 0) {
|
||||
if (error < 0)
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* parse response */
|
||||
error = as10x_rsp_parse(prsp, CONTROL_PROC_ELNA_CHANGE_MODE_RSP);
|
||||
|
||||
out:
|
||||
LEAVE();
|
||||
return(error);
|
||||
return error;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -225,8 +223,8 @@ out:
|
|||
ABILIS_RC_NOK
|
||||
\callgraph
|
||||
*/
|
||||
int as10x_context_rsp_parse(struct as10x_cmd_t *prsp, uint16_t proc_id) {
|
||||
|
||||
int as10x_context_rsp_parse(struct as10x_cmd_t *prsp, uint16_t proc_id)
|
||||
{
|
||||
int err;
|
||||
|
||||
err = prsp->body.context.rsp.error;
|
||||
|
|
Loading…
Add table
Reference in a new issue