Commit 831e5bad authored by Arvydas Sidorenko's avatar Arvydas Sidorenko Committed by Greg Kroah-Hartman

drivers/staging/crystalhd/: Fix a coding style issues

crystalhd_fw_if.h: indentation fix (spaces to tabs)
The rest are brackets.

NOTE: there are quite some 80 character warnings, but they look in place,
comments mostly on the right next to the constants and stuff like that. I
haven't touched them, since this rule is 'going away', but in case you would
like it to be fixed, let me know.

I'm sending 2 patches, but it they aren't connected in any way, so doesn't
matter the apply order. It's just a cleanup.

P.S sorry for the first lame patches a couple of days ago
Signed-off-by: default avatarArvydas Sidorenko <asido4@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 41344f6f
...@@ -84,7 +84,7 @@ enum BC_SW_OPTIONS { ...@@ -84,7 +84,7 @@ enum BC_SW_OPTIONS {
BC_OPT_LINK_OUT_ENCRYPT = BC_BIT(29), BC_OPT_LINK_OUT_ENCRYPT = BC_BIT(29),
}; };
struct BC_REG_CONFIG{ struct BC_REG_CONFIG {
uint32_t DbgOptions; uint32_t DbgOptions;
}; };
...@@ -391,7 +391,7 @@ struct BC_PIC_INFO_BLOCK { ...@@ -391,7 +391,7 @@ struct BC_PIC_INFO_BLOCK {
* ProcOut Info * * ProcOut Info *
*------------------------------------------------------*/ *------------------------------------------------------*/
/* Optional flags for ProcOut Interface.*/ /* Optional flags for ProcOut Interface.*/
enum POUT_OPTIONAL_IN_FLAGS_{ enum POUT_OPTIONAL_IN_FLAGS_ {
/* Flags from App to Device */ /* Flags from App to Device */
BC_POUT_FLAGS_YV12 = 0x01, /* Copy Data in YV12 format */ BC_POUT_FLAGS_YV12 = 0x01, /* Copy Data in YV12 format */
BC_POUT_FLAGS_STRIDE = 0x02, /* Stride size is valid. */ BC_POUT_FLAGS_STRIDE = 0x02, /* Stride size is valid. */
......
...@@ -175,7 +175,7 @@ struct BC_DEC_YUV_BUFFS { ...@@ -175,7 +175,7 @@ struct BC_DEC_YUV_BUFFS {
uint32_t RefCnt; uint32_t RefCnt;
}; };
enum DECOUT_COMPLETION_FLAGS{ enum DECOUT_COMPLETION_FLAGS {
COMP_FLAG_NO_INFO = 0x00, COMP_FLAG_NO_INFO = 0x00,
COMP_FLAG_FMT_CHANGE = 0x01, COMP_FLAG_FMT_CHANGE = 0x01,
COMP_FLAG_PIB_VALID = 0x02, COMP_FLAG_PIB_VALID = 0x02,
...@@ -184,7 +184,7 @@ enum DECOUT_COMPLETION_FLAGS{ ...@@ -184,7 +184,7 @@ enum DECOUT_COMPLETION_FLAGS{
COMP_FLAG_DATA_BOT = 0x10, COMP_FLAG_DATA_BOT = 0x10,
}; };
struct BC_DEC_OUT_BUFF{ struct BC_DEC_OUT_BUFF {
struct BC_DEC_YUV_BUFFS OutPutBuffs; struct BC_DEC_YUV_BUFFS OutPutBuffs;
struct BC_PIC_INFO_BLOCK PibInfo; struct BC_PIC_INFO_BLOCK PibInfo;
uint32_t Flags; uint32_t Flags;
...@@ -289,7 +289,7 @@ struct crystalhd_ioctl_data { ...@@ -289,7 +289,7 @@ struct crystalhd_ioctl_data {
struct crystalhd_ioctl_data *next; /* List/Fifo management */ struct crystalhd_ioctl_data *next; /* List/Fifo management */
}; };
enum crystalhd_kmod_ver{ enum crystalhd_kmod_ver {
crystalhd_kmod_major = 0, crystalhd_kmod_major = 0,
crystalhd_kmod_minor = 9, crystalhd_kmod_minor = 9,
crystalhd_kmod_rev = 27, crystalhd_kmod_rev = 27,
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#include "crystalhd_misc.h" #include "crystalhd_misc.h"
#include "crystalhd_hw.h" #include "crystalhd_hw.h"
enum crystalhd_state{ enum crystalhd_state {
BC_LINK_INVALID = 0x00, BC_LINK_INVALID = 0x00,
BC_LINK_INIT = 0x01, BC_LINK_INIT = 0x01,
BC_LINK_CAP_EN = 0x02, BC_LINK_CAP_EN = 0x02,
......
...@@ -205,12 +205,12 @@ enum _chd_log_levels { ...@@ -205,12 +205,12 @@ enum _chd_log_levels {
#define BCMLOG_ENTER \ #define BCMLOG_ENTER \
if (g_linklog_level & BCMLOG_ENTER_LEAVE) { \ if (g_linklog_level & BCMLOG_ENTER_LEAVE) { \
printk("Entered %s\n", __func__); \ printk(KERN_DEBUG "Entered %s\n", __func__); \
} }
#define BCMLOG_LEAVE \ #define BCMLOG_LEAVE \
if (g_linklog_level & BCMLOG_ENTER_LEAVE) { \ if (g_linklog_level & BCMLOG_ENTER_LEAVE) { \
printk("Leaving %s\n", __func__); \ printk(KERN_DEBUG "Leaving %s\n", __func__); \
} }
#define BCMLOG(trace, fmt, args...) \ #define BCMLOG(trace, fmt, args...) \
...@@ -221,7 +221,7 @@ if (g_linklog_level & trace) { \ ...@@ -221,7 +221,7 @@ if (g_linklog_level & trace) { \
#define BCMLOG_ERR(fmt, args...) \ #define BCMLOG_ERR(fmt, args...) \
do { \ do { \
if (g_linklog_level & BCMLOG_ERROR) { \ if (g_linklog_level & BCMLOG_ERROR) { \
printk("*ERR*:%s:%d: "fmt, __FILE__, __LINE__, ##args); \ printk(KERN_ERR "*ERR*:%s:%d: "fmt, __FILE__, __LINE__, ##args); \
} \ } \
} while (0); } while (0);
......
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