staging: qlge: Fix CamelCase in qlge.h and qlge_dbg.c
This patch addresses CamelCase warnings in qlge.h under struct mpi_coredump_global_header and mpi_coredump_segment_header. As well ass addresses CamelCase warnings in qlge_dbg.c when the structs are used. Signed-off-by: Scott Schafer <schaferjscott@gmail.com> Link: https://lore.kernel.org/r/20191209101908.23878-1-schaferjscott@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1f8a6edf8d
commit
742e9285f8
|
@ -1627,18 +1627,18 @@ enum {
|
|||
#define MPI_COREDUMP_COOKIE 0x5555aaaa
|
||||
struct mpi_coredump_global_header {
|
||||
u32 cookie;
|
||||
u8 idString[16];
|
||||
u32 timeLo;
|
||||
u32 timeHi;
|
||||
u32 imageSize;
|
||||
u32 headerSize;
|
||||
u8 id_string[16];
|
||||
u32 time_lo;
|
||||
u32 time_hi;
|
||||
u32 image_size;
|
||||
u32 header_size;
|
||||
u8 info[220];
|
||||
};
|
||||
|
||||
struct mpi_coredump_segment_header {
|
||||
u32 cookie;
|
||||
u32 segNum;
|
||||
u32 segSize;
|
||||
u32 seg_num;
|
||||
u32 seg_size;
|
||||
u32 extra;
|
||||
u8 description[16];
|
||||
};
|
||||
|
|
|
@ -702,8 +702,8 @@ static void ql_build_coredump_seg_header(
|
|||
{
|
||||
memset(seg_hdr, 0, sizeof(struct mpi_coredump_segment_header));
|
||||
seg_hdr->cookie = MPI_COREDUMP_COOKIE;
|
||||
seg_hdr->segNum = seg_number;
|
||||
seg_hdr->segSize = seg_size;
|
||||
seg_hdr->seg_num = seg_number;
|
||||
seg_hdr->seg_size = seg_size;
|
||||
strncpy(seg_hdr->description, desc, (sizeof(seg_hdr->description)) - 1);
|
||||
}
|
||||
|
||||
|
@ -741,12 +741,12 @@ int ql_core_dump(struct ql_adapter *qdev, struct ql_mpi_coredump *mpi_coredump)
|
|||
memset(&(mpi_coredump->mpi_global_header), 0,
|
||||
sizeof(struct mpi_coredump_global_header));
|
||||
mpi_coredump->mpi_global_header.cookie = MPI_COREDUMP_COOKIE;
|
||||
mpi_coredump->mpi_global_header.headerSize =
|
||||
mpi_coredump->mpi_global_header.header_size =
|
||||
sizeof(struct mpi_coredump_global_header);
|
||||
mpi_coredump->mpi_global_header.imageSize =
|
||||
mpi_coredump->mpi_global_header.image_size =
|
||||
sizeof(struct ql_mpi_coredump);
|
||||
strncpy(mpi_coredump->mpi_global_header.idString, "MPI Coredump",
|
||||
sizeof(mpi_coredump->mpi_global_header.idString));
|
||||
strncpy(mpi_coredump->mpi_global_header.id_string, "MPI Coredump",
|
||||
sizeof(mpi_coredump->mpi_global_header.id_string));
|
||||
|
||||
/* Get generic NIC reg dump */
|
||||
ql_build_coredump_seg_header(&mpi_coredump->nic_regs_seg_hdr,
|
||||
|
@ -1231,12 +1231,12 @@ static void ql_gen_reg_dump(struct ql_adapter *qdev,
|
|||
memset(&(mpi_coredump->mpi_global_header), 0,
|
||||
sizeof(struct mpi_coredump_global_header));
|
||||
mpi_coredump->mpi_global_header.cookie = MPI_COREDUMP_COOKIE;
|
||||
mpi_coredump->mpi_global_header.headerSize =
|
||||
mpi_coredump->mpi_global_header.header_size =
|
||||
sizeof(struct mpi_coredump_global_header);
|
||||
mpi_coredump->mpi_global_header.imageSize =
|
||||
mpi_coredump->mpi_global_header.image_size =
|
||||
sizeof(struct ql_reg_dump);
|
||||
strncpy(mpi_coredump->mpi_global_header.idString, "MPI Coredump",
|
||||
sizeof(mpi_coredump->mpi_global_header.idString));
|
||||
strncpy(mpi_coredump->mpi_global_header.id_string, "MPI Coredump",
|
||||
sizeof(mpi_coredump->mpi_global_header.id_string));
|
||||
|
||||
|
||||
/* segment 16 */
|
||||
|
|
Loading…
Reference in New Issue