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

This patch removes typedef for _LED_INFO_STRUCT, and changes
the name of the struct to bcm_led_info. In addition,
any calls to struct LED_INFO_STRUCT, or *PLED_INFO_STRUCT
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-14 19:26:50 -05:00 committed by Greg Kroah-Hartman
parent a6f0b530e5
commit 684fb7e6f0
2 changed files with 3 additions and 4 deletions

View File

@ -303,7 +303,7 @@ struct bcm_mini_adapter {
struct task_struct *transmit_packet_thread; struct task_struct *transmit_packet_thread;
/* LED Related Structures */ /* LED Related Structures */
LED_INFO_STRUCT LEDInfo; struct bcm_led_info LEDInfo;
/* Driver State for LED Blinking */ /* Driver State for LED Blinking */
LedEventInfo_t DriverState; LedEventInfo_t DriverState;

View File

@ -67,7 +67,7 @@ typedef struct LedStateInfo_t {
unsigned char BitPolarity; /* To represent whether H/W is normal polarity or reverse polarity */ unsigned char BitPolarity; /* To represent whether H/W is normal polarity or reverse polarity */
} LEDStateInfo, *pLEDStateInfo; } LEDStateInfo, *pLEDStateInfo;
typedef struct _LED_INFO_STRUCT { struct bcm_led_info {
LEDStateInfo LEDState[NUM_OF_LEDS]; LEDStateInfo LEDState[NUM_OF_LEDS];
bool bIdleMode_tx_from_host; /* Variable to notify whether driver came out from idlemode due to Host or target */ bool bIdleMode_tx_from_host; /* Variable to notify whether driver came out from idlemode due to Host or target */
bool bIdle_led_off; bool bIdle_led_off;
@ -76,8 +76,7 @@ typedef struct _LED_INFO_STRUCT {
struct task_struct *led_cntrl_threadid; struct task_struct *led_cntrl_threadid;
int led_thread_running; int led_thread_running;
bool bLedInitDone; bool bLedInitDone;
};
} LED_INFO_STRUCT, *PLED_INFO_STRUCT;
/* LED Thread state. */ /* LED Thread state. */
#define BCM_LED_THREAD_DISABLED 0 /* LED Thread is not running. */ #define BCM_LED_THREAD_DISABLED 0 /* LED Thread is not running. */