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

This patch removes typedef for _LINK_STATE, and changes
the name of the struct to bcm_link_state. In addition,
any calls to struct "LINK_STATE, or PLINK_STATE" are
changed to call directly.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Kevin McKinney 2012-12-21 15:10:38 -05:00 committed by Greg Kroah-Hartman
parent c081e78bd4
commit a23e67f1a2
2 changed files with 3 additions and 5 deletions

View File

@ -1013,7 +1013,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
} }
case IOCTL_BCM_GET_CURRENT_STATUS: { case IOCTL_BCM_GET_CURRENT_STATUS: {
LINK_STATE link_state; struct bcm_link_state link_state;
/* Copy Ioctl Buffer structure */ /* Copy Ioctl Buffer structure */
if (copy_from_user(&IoBuffer, argp, sizeof(struct bcm_ioctl_buffer))) { if (copy_from_user(&IoBuffer, argp, sizeof(struct bcm_ioctl_buffer))) {

View File

@ -162,13 +162,11 @@
#define GPIO_MODE_REGISTER 0x0F000034 #define GPIO_MODE_REGISTER 0x0F000034
#define GPIO_PIN_STATE_REGISTER 0x0F000038 #define GPIO_PIN_STATE_REGISTER 0x0F000038
struct bcm_link_state {
typedef struct _LINK_STATE {
UCHAR ucLinkStatus; UCHAR ucLinkStatus;
UCHAR bIdleMode; UCHAR bIdleMode;
UCHAR bShutdownMode; UCHAR bShutdownMode;
} LINK_STATE, *PLINK_STATE; };
enum enLinkStatus { enum enLinkStatus {
WAIT_FOR_SYNC = 1, WAIT_FOR_SYNC = 1,