aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin McKinney <klmckinney1@gmail.com>2012-12-14 19:26:50 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-07 10:51:50 -0800
commit684fb7e6f0ff07f7d9ad513beabe44efed5bf882 (patch)
tree62c07d98e1f8875c4583f405db670b86f6a048cf
parenta6f0b530e56d8b7ee428d92af1c7da88e4d9d583 (diff)
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>
-rw-r--r--drivers/staging/bcm/Adapter.h2
-rw-r--r--drivers/staging/bcm/led_control.h5
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapter.h
index 1f7005d0b65..8bce936729f 100644
--- a/drivers/staging/bcm/Adapter.h
+++ b/drivers/staging/bcm/Adapter.h
@@ -303,7 +303,7 @@ struct bcm_mini_adapter {
struct task_struct *transmit_packet_thread;
/* LED Related Structures */
- LED_INFO_STRUCT LEDInfo;
+ struct bcm_led_info LEDInfo;
/* Driver State for LED Blinking */
LedEventInfo_t DriverState;
diff --git a/drivers/staging/bcm/led_control.h b/drivers/staging/bcm/led_control.h
index c44dd02b08a..8b7dcdf5d3b 100644
--- a/drivers/staging/bcm/led_control.h
+++ b/drivers/staging/bcm/led_control.h
@@ -67,7 +67,7 @@ typedef struct LedStateInfo_t {
unsigned char BitPolarity; /* To represent whether H/W is normal polarity or reverse polarity */
} LEDStateInfo, *pLEDStateInfo;
-typedef struct _LED_INFO_STRUCT {
+struct bcm_led_info {
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 bIdle_led_off;
@@ -76,8 +76,7 @@ typedef struct _LED_INFO_STRUCT {
struct task_struct *led_cntrl_threadid;
int led_thread_running;
bool bLedInitDone;
-
-} LED_INFO_STRUCT, *PLED_INFO_STRUCT;
+};
/* LED Thread state. */
#define BCM_LED_THREAD_DISABLED 0 /* LED Thread is not running. */