Staging: SLICOSS: Fix remaining type names
Fix the remaining variables that still had '_t' as a postfix and also a couple of checkpatch warnings. Signed-off-by: Lior Dotan <liodot@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Родитель
4578ca0fc2
Коммит
68cf95f318
|
@ -53,7 +53,8 @@
|
||||||
{ \
|
{ \
|
||||||
adapter->card->reg_type[adapter->card->debug_ix] = 0; \
|
adapter->card->reg_type[adapter->card->debug_ix] = 0; \
|
||||||
adapter->card->reg_offset[adapter->card->debug_ix] = \
|
adapter->card->reg_offset[adapter->card->debug_ix] = \
|
||||||
((unsigned char *)(®)) - ((unsigned char *)adapter->slic_regs); \
|
((unsigned char *)(®)) - \
|
||||||
|
((unsigned char *)adapter->slic_regs); \
|
||||||
adapter->card->reg_value[adapter->card->debug_ix++] = value; \
|
adapter->card->reg_value[adapter->card->debug_ix++] = value; \
|
||||||
if (adapter->card->debug_ix == 32) \
|
if (adapter->card->debug_ix == 32) \
|
||||||
adapter->card->debug_ix = 0; \
|
adapter->card->debug_ix = 0; \
|
||||||
|
@ -63,7 +64,8 @@
|
||||||
{ \
|
{ \
|
||||||
adapter->card->reg_type[adapter->card->debug_ix] = 1; \
|
adapter->card->reg_type[adapter->card->debug_ix] = 1; \
|
||||||
adapter->card->reg_offset[adapter->card->debug_ix] = \
|
adapter->card->reg_offset[adapter->card->debug_ix] = \
|
||||||
((unsigned char *)(®)) - ((unsigned char *)adapter->slic_regs); \
|
((unsigned char *)(®)) - \
|
||||||
|
((unsigned char *)adapter->slic_regs); \
|
||||||
adapter->card->reg_value[adapter->card->debug_ix] = value; \
|
adapter->card->reg_value[adapter->card->debug_ix] = value; \
|
||||||
adapter->card->reg_valueh[adapter->card->debug_ix++] = valh; \
|
adapter->card->reg_valueh[adapter->card->debug_ix++] = valh; \
|
||||||
if (adapter->card->debug_ix == 32) \
|
if (adapter->card->debug_ix == 32) \
|
||||||
|
|
|
@ -228,7 +228,7 @@ struct CORE_Q {
|
||||||
#define DRIVER_NAME_SIZE 32
|
#define DRIVER_NAME_SIZE 32
|
||||||
|
|
||||||
struct sliccore_hdr {
|
struct sliccore_hdr {
|
||||||
unsigned char driver_version[DRIVER_NAME_SIZE]; /* Driver version string */
|
unsigned char driver_version[DRIVER_NAME_SIZE]; /* Driver version string */
|
||||||
u32 RcvRegOff; /* Offset of receive registers */
|
u32 RcvRegOff; /* Offset of receive registers */
|
||||||
u32 RcvRegsize; /* size of receive registers */
|
u32 RcvRegsize; /* size of receive registers */
|
||||||
u32 XmtRegOff; /* Offset of transmit registers */
|
u32 XmtRegOff; /* Offset of transmit registers */
|
||||||
|
|
|
@ -702,7 +702,7 @@ struct vendor4_fru {
|
||||||
unsigned char pad[3];
|
unsigned char pad[3];
|
||||||
};
|
};
|
||||||
|
|
||||||
union oemfru_t {
|
union oemfru {
|
||||||
struct vendor1_fru vendor1_fru;
|
struct vendor1_fru vendor1_fru;
|
||||||
struct vendor2_fru vendor2_fru;
|
struct vendor2_fru vendor2_fru;
|
||||||
struct vendor3_fru vendor3_fru;
|
struct vendor3_fru vendor3_fru;
|
||||||
|
@ -764,7 +764,7 @@ struct slic_eeprom {
|
||||||
unsigned char FruFormat; /* Alacritech FRU format type */
|
unsigned char FruFormat; /* Alacritech FRU format type */
|
||||||
struct atk_fru AtkFru; /* Alacritech FRU information */
|
struct atk_fru AtkFru; /* Alacritech FRU information */
|
||||||
unsigned char OemFruFormat; /* optional OEM FRU format type */
|
unsigned char OemFruFormat; /* optional OEM FRU format type */
|
||||||
union oemfru_t OemFru; /* optional OEM FRU information */
|
union oemfru OemFru; /* optional OEM FRU information */
|
||||||
unsigned char Pad[4]; /* Pad to 128 bytes - includes 2 cksum bytes
|
unsigned char Pad[4]; /* Pad to 128 bytes - includes 2 cksum bytes
|
||||||
*(if OEM FRU info exists) and two unusable
|
*(if OEM FRU info exists) and two unusable
|
||||||
* bytes at the end */
|
* bytes at the end */
|
||||||
|
@ -809,7 +809,7 @@ struct oslic_eeprom {
|
||||||
unsigned char FruFormat; /* 35 Alacritech FRU format type */
|
unsigned char FruFormat; /* 35 Alacritech FRU format type */
|
||||||
struct atk_fru AtkFru; /* Alacritech FRU information */
|
struct atk_fru AtkFru; /* Alacritech FRU information */
|
||||||
unsigned char OemFruFormat; /* optional OEM FRU format type */
|
unsigned char OemFruFormat; /* optional OEM FRU format type */
|
||||||
union oemfru_t OemFru; /* optional OEM FRU information */
|
union oemfru OemFru; /* optional OEM FRU information */
|
||||||
unsigned char Pad[4]; /* Pad to 128 bytes - includes 2 checksum bytes
|
unsigned char Pad[4]; /* Pad to 128 bytes - includes 2 checksum bytes
|
||||||
* (if OEM FRU info exists) and two unusable
|
* (if OEM FRU info exists) and two unusable
|
||||||
* bytes at the end
|
* bytes at the end
|
||||||
|
|
|
@ -1015,7 +1015,7 @@ static int slic_xmit_start(struct sk_buff *skb, struct net_device *dev)
|
||||||
|
|
||||||
#ifdef DEBUG_DUMP
|
#ifdef DEBUG_DUMP
|
||||||
if (adapter->kill_card) {
|
if (adapter->kill_card) {
|
||||||
p_slic_host64_cmd_t ihcmd;
|
struct slic_host64_cmd ihcmd;
|
||||||
|
|
||||||
ihcmd = &hcmd->cmd64;
|
ihcmd = &hcmd->cmd64;
|
||||||
|
|
||||||
|
@ -2455,7 +2455,7 @@ static int slic_card_init(struct sliccard *card, struct adapter *adapter)
|
||||||
unsigned char fruformat;
|
unsigned char fruformat;
|
||||||
unsigned char oemfruformat;
|
unsigned char oemfruformat;
|
||||||
struct atk_fru *patkfru;
|
struct atk_fru *patkfru;
|
||||||
union oemfru_t *poemfru;
|
union oemfru *poemfru;
|
||||||
|
|
||||||
DBG_MSG
|
DBG_MSG
|
||||||
("slicoss: %s ENTER card[%p] adapter[%p] card->state[%x] \
|
("slicoss: %s ENTER card[%p] adapter[%p] card->state[%x] \
|
||||||
|
@ -2692,7 +2692,7 @@ static int slic_card_init(struct sliccard *card, struct adapter *adapter)
|
||||||
* Allocate COMMAND BUFFER
|
* Allocate COMMAND BUFFER
|
||||||
*/
|
*/
|
||||||
if (!card->cmdbuffer) {
|
if (!card->cmdbuffer) {
|
||||||
card->cmdbuffer = kmalloc(sizeof(dump_cmd_t), GFP_ATOMIC);
|
card->cmdbuffer = kmalloc(sizeof(struct dump_cmd), GFP_ATOMIC);
|
||||||
|
|
||||||
ASSERT(card->cmdbuffer);
|
ASSERT(card->cmdbuffer);
|
||||||
if (card->cmdbuffer == NULL)
|
if (card->cmdbuffer == NULL)
|
||||||
|
@ -2702,7 +2702,7 @@ static int slic_card_init(struct sliccard *card, struct adapter *adapter)
|
||||||
* Smear the shared memory structure and then obtain
|
* Smear the shared memory structure and then obtain
|
||||||
* the PHYSICAL address of this structure
|
* the PHYSICAL address of this structure
|
||||||
*/
|
*/
|
||||||
memset(card->cmdbuffer, 0, sizeof(dump_cmd_t));
|
memset(card->cmdbuffer, 0, sizeof(struct dump_cmd));
|
||||||
card->cmdbuffer_phys = virt_to_bus(card->cmdbuffer);
|
card->cmdbuffer_phys = virt_to_bus(card->cmdbuffer);
|
||||||
card->cmdbuffer_physh = SLIC_GET_ADDR_HIGH(card->cmdbuffer_phys);
|
card->cmdbuffer_physh = SLIC_GET_ADDR_HIGH(card->cmdbuffer_phys);
|
||||||
card->cmdbuffer_physl = SLIC_GET_ADDR_LOW(card->cmdbuffer_phys);
|
card->cmdbuffer_physl = SLIC_GET_ADDR_LOW(card->cmdbuffer_phys);
|
||||||
|
@ -4417,7 +4417,7 @@ static int slic_debug_card_show(struct seq_file *seq, void *v)
|
||||||
#ifdef MOOKTODO
|
#ifdef MOOKTODO
|
||||||
int i;
|
int i;
|
||||||
struct sliccard *card = seq->private;
|
struct sliccard *card = seq->private;
|
||||||
pslic_config_t config = &card->config;
|
struct slic_config *config = &card->config;
|
||||||
unsigned char *fru = (unsigned char *)(&card->config.atk_fru);
|
unsigned char *fru = (unsigned char *)(&card->config.atk_fru);
|
||||||
unsigned char *oemfru = (unsigned char *)(&card->config.OemFru);
|
unsigned char *oemfru = (unsigned char *)(&card->config.OemFru);
|
||||||
#endif
|
#endif
|
||||||
|
@ -5311,7 +5311,7 @@ static u32 slic_dump_card(struct sliccard *card, bool resume)
|
||||||
u32 queue;
|
u32 queue;
|
||||||
u32 len, offset;
|
u32 len, offset;
|
||||||
u32 sram_size, dram_size, regs;
|
u32 sram_size, dram_size, regs;
|
||||||
sliccore_hdr_t corehdr;
|
struct sliccore_hdr corehdr;
|
||||||
u32 file_offset;
|
u32 file_offset;
|
||||||
char *namestr;
|
char *namestr;
|
||||||
u32 i;
|
u32 i;
|
||||||
|
@ -5344,7 +5344,7 @@ static u32 slic_dump_card(struct sliccard *card, bool resume)
|
||||||
}
|
}
|
||||||
corehdr.driver_version[i] = 0;
|
corehdr.driver_version[i] = 0;
|
||||||
|
|
||||||
file_offset = sizeof(sliccore_hdr_t);
|
file_offset = sizeof(struct sliccore_hdr);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Issue the following debug commands to the SLIC:
|
* Issue the following debug commands to the SLIC:
|
||||||
|
@ -5651,10 +5651,10 @@ done:
|
||||||
*/
|
*/
|
||||||
file_offset = 0;
|
file_offset = 0;
|
||||||
DBG_MSG("[slicmon] Write CoreHeader len[%x] offset[%x]\n",
|
DBG_MSG("[slicmon] Write CoreHeader len[%x] offset[%x]\n",
|
||||||
(uint) sizeof(sliccore_hdr_t), file_offset);
|
(uint) sizeof(struct sliccore_hdr), file_offset);
|
||||||
|
|
||||||
result =
|
result =
|
||||||
slic_dump_write(card, &corehdr, sizeof(sliccore_hdr_t),
|
slic_dump_write(card, &corehdr, sizeof(struct sliccore_hdr),
|
||||||
file_offset);
|
file_offset);
|
||||||
DBG_MSG("[slicmon] corehdr xoff[%x] xsz[%x]\n"
|
DBG_MSG("[slicmon] corehdr xoff[%x] xsz[%x]\n"
|
||||||
" roff[%x] rsz[%x] fileoff[%x] filesz[%x]\n"
|
" roff[%x] rsz[%x] fileoff[%x] filesz[%x]\n"
|
||||||
|
@ -5663,7 +5663,7 @@ done:
|
||||||
corehdr.XmtRegsize, corehdr.RcvRegOff, corehdr.RcvRegsize,
|
corehdr.XmtRegsize, corehdr.RcvRegOff, corehdr.RcvRegsize,
|
||||||
corehdr.FileRegOff, corehdr.FileRegsize, corehdr.SramOff,
|
corehdr.FileRegOff, corehdr.FileRegsize, corehdr.SramOff,
|
||||||
corehdr.Sramsize, corehdr.DramOff, corehdr.Dramsize,
|
corehdr.Sramsize, corehdr.DramOff, corehdr.Dramsize,
|
||||||
(uint) sizeof(sliccore_hdr_t));
|
(uint) sizeof(struct sliccore_hdr));
|
||||||
for (i = 0; i < max_queues; i++) {
|
for (i = 0; i < max_queues; i++) {
|
||||||
DBG_MSG("[slicmon] QUEUE 0x%x offset[%x] size[%x]\n",
|
DBG_MSG("[slicmon] QUEUE 0x%x offset[%x] size[%x]\n",
|
||||||
(uint) i, corehdr.queues[i].queueOff,
|
(uint) i, corehdr.queues[i].queueOff,
|
||||||
|
@ -5706,7 +5706,7 @@ static u32 slic_dump_resume(struct sliccard *card, unsigned char proc)
|
||||||
|
|
||||||
static u32 slic_dump_reg(struct sliccard *card, unsigned char proc)
|
static u32 slic_dump_reg(struct sliccard *card, unsigned char proc)
|
||||||
{
|
{
|
||||||
pdump_cmd_t dump = (pdump_cmd_t) card->cmdbuffer;
|
struct dump_cmd *dump = (struct dump_cmd *)card->cmdbuffer;
|
||||||
|
|
||||||
dump->cmd = COMMAND_BYTE(CMD_DUMP, 0, proc);
|
dump->cmd = COMMAND_BYTE(CMD_DUMP, 0, proc);
|
||||||
dump->desc = DESC_REG;
|
dump->desc = DESC_REG;
|
||||||
|
@ -5723,7 +5723,7 @@ static u32 slic_dump_reg(struct sliccard *card, unsigned char proc)
|
||||||
static u32 slic_dump_data(struct sliccard *card,
|
static u32 slic_dump_data(struct sliccard *card,
|
||||||
u32 addr, ushort count, unsigned char desc)
|
u32 addr, ushort count, unsigned char desc)
|
||||||
{
|
{
|
||||||
pdump_cmd_t dump = (pdump_cmd_t) card->cmdbuffer;
|
struct dump_cmd *dump = (struct dump_cmd *)card->cmdbuffer;
|
||||||
|
|
||||||
dump->cmd = COMMAND_BYTE(CMD_DUMP, 0, PROC_RECEIVE);
|
dump->cmd = COMMAND_BYTE(CMD_DUMP, 0, PROC_RECEIVE);
|
||||||
dump->desc = desc;
|
dump->desc = desc;
|
||||||
|
@ -5740,7 +5740,7 @@ static u32 slic_dump_data(struct sliccard *card,
|
||||||
static u32 slic_dump_queue(struct sliccard *card,
|
static u32 slic_dump_queue(struct sliccard *card,
|
||||||
u32 addr, u32 buf_physh, u32 queue)
|
u32 addr, u32 buf_physh, u32 queue)
|
||||||
{
|
{
|
||||||
pdump_cmd_t dump = (pdump_cmd_t) card->cmdbuffer;
|
struct dump_cmd *dump = (struct dump_cmd *)card->cmdbuffer;
|
||||||
|
|
||||||
dump->cmd = COMMAND_BYTE(CMD_DUMP, 0, PROC_RECEIVE);
|
dump->cmd = COMMAND_BYTE(CMD_DUMP, 0, PROC_RECEIVE);
|
||||||
dump->desc = DESC_QUEUE;
|
dump->desc = DESC_QUEUE;
|
||||||
|
@ -5756,7 +5756,7 @@ static u32 slic_dump_queue(struct sliccard *card,
|
||||||
static u32 slic_dump_load_queue(struct sliccard *card, u32 data,
|
static u32 slic_dump_load_queue(struct sliccard *card, u32 data,
|
||||||
u32 queue)
|
u32 queue)
|
||||||
{
|
{
|
||||||
pdump_cmd_t load = (pdump_cmd_t) card->cmdbuffer;
|
struct dump_cmd *load = (struct dump_cmd *) card->cmdbuffer;
|
||||||
|
|
||||||
load->cmd = COMMAND_BYTE(CMD_LOAD, 0, PROC_RECEIVE);
|
load->cmd = COMMAND_BYTE(CMD_LOAD, 0, PROC_RECEIVE);
|
||||||
load->desc = DESC_QUEUE;
|
load->desc = DESC_QUEUE;
|
||||||
|
@ -5771,7 +5771,7 @@ static u32 slic_dump_load_queue(struct sliccard *card, u32 data,
|
||||||
static u32 slic_dump_cam(struct sliccard *card,
|
static u32 slic_dump_cam(struct sliccard *card,
|
||||||
u32 addr, u32 count, unsigned char desc)
|
u32 addr, u32 count, unsigned char desc)
|
||||||
{
|
{
|
||||||
pdump_cmd_t dump = (pdump_cmd_t) card->cmdbuffer;
|
struct dump_cmd *dump = (struct dump_cmd *)card->cmdbuffer;
|
||||||
|
|
||||||
dump->cmd = COMMAND_BYTE(CMD_CAM_OPS, 0, PROC_NONE);
|
dump->cmd = COMMAND_BYTE(CMD_CAM_OPS, 0, PROC_NONE);
|
||||||
dump->desc = desc;
|
dump->desc = desc;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче