Commit 98e341d3 authored by Kevin McKinney's avatar Kevin McKinney Committed by Greg Kroah-Hartman

Staging: bcm: Remove typedef for bulkwrmbuffer and call directly.

This patch removes typedef for bulkwrmbuffer,
and changes the name of the struct to
bcm_bulk_wrm_buffer. In addition, any calls to
typedefs BULKWRM_BUFFER, or *PBULKWRM_BUFFER
are changed to call the struct directly.
Signed-off-by: default avatarKevin McKinney <klmckinney1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b1206c09
...@@ -1118,7 +1118,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg) ...@@ -1118,7 +1118,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
break; break;
case IOCTL_BCM_BULK_WRM: { case IOCTL_BCM_BULK_WRM: {
PBULKWRM_BUFFER pBulkBuffer; struct bcm_bulk_wrm_buffer *pBulkBuffer;
UINT uiTempVar = 0; UINT uiTempVar = 0;
PCHAR pvBuffer = NULL; PCHAR pvBuffer = NULL;
...@@ -1143,7 +1143,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg) ...@@ -1143,7 +1143,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
if (IS_ERR(pvBuffer)) if (IS_ERR(pvBuffer))
return PTR_ERR(pvBuffer); return PTR_ERR(pvBuffer);
pBulkBuffer = (PBULKWRM_BUFFER)pvBuffer; pBulkBuffer = (struct bcm_bulk_wrm_buffer *)pvBuffer;
if (((ULONG)pBulkBuffer->Register & 0x0F000000) != 0x0F000000 || if (((ULONG)pBulkBuffer->Register & 0x0F000000) != 0x0F000000 ||
((ULONG)pBulkBuffer->Register & 0x3)) { ((ULONG)pBulkBuffer->Register & 0x3)) {
......
...@@ -123,12 +123,11 @@ typedef struct _NVM_READWRITE { ...@@ -123,12 +123,11 @@ typedef struct _NVM_READWRITE {
bool bVerify; bool bVerify;
} NVM_READWRITE, *PNVM_READWRITE; } NVM_READWRITE, *PNVM_READWRITE;
typedef struct bulkwrmbuffer { struct bcm_bulk_wrm_buffer {
unsigned long Register; unsigned long Register;
unsigned long SwapEndian; unsigned long SwapEndian;
unsigned long Values[1]; unsigned long Values[1];
};
} BULKWRM_BUFFER, *PBULKWRM_BUFFER;
typedef enum _FLASH2X_SECTION_VAL { typedef enum _FLASH2X_SECTION_VAL {
NO_SECTION_VAL = 0, /* no section is chosen when absolute offset is given for RD/WR */ NO_SECTION_VAL = 0, /* no section is chosen when absolute offset is given for RD/WR */
......
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