diff options
-rw-r--r-- | drivers/staging/bcm/Bcmchar.c | 5 | ||||
-rw-r--r-- | drivers/staging/bcm/Ioctl.h | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index 7250c48..a8184a5 100644 --- a/drivers/staging/bcm/Bcmchar.c +++ b/drivers/staging/bcm/Bcmchar.c @@ -248,7 +248,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg) } case IOCTL_BCM_REGISTER_WRITE_PRIVATE: { - WRM_BUFFER sWrmBuffer = {0}; + struct bcm_wrm_buffer sWrmBuffer = {0}; UINT uiTempVar = 0; /* Copy Ioctl Buffer structure */ @@ -345,8 +345,9 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg) } case IOCTL_BCM_REGISTER_WRITE: case IOCTL_BCM_EEPROM_REGISTER_WRITE: { - WRM_BUFFER sWrmBuffer = {0}; + struct bcm_wrm_buffer sWrmBuffer = {0}; UINT uiTempVar = 0; + if ((Adapter->IdleMode == TRUE) || (Adapter->bShutStatus == TRUE) || (Adapter->bPreparingForLowPowerMode == TRUE)) { diff --git a/drivers/staging/bcm/Ioctl.h b/drivers/staging/bcm/Ioctl.h index 440bff5..5910ba5 100644 --- a/drivers/staging/bcm/Ioctl.h +++ b/drivers/staging/bcm/Ioctl.h @@ -6,11 +6,11 @@ typedef struct rdmbuffer { unsigned long Length; } __packed RDM_BUFFER, *PRDM_BUFFER; -typedef struct wrmbuffer { +struct bcm_wrm_buffer { unsigned long Register; unsigned long Length; unsigned char Data[4]; -} __packed WRM_BUFFER, *PWRM_BUFFER; +} __packed; struct bcm_ioctl_buffer { void __user *InputBuffer; |