Skip to content

Commit

Permalink
iwlwifi: make index unsigned int for iwl_send_led_cmd
Browse files Browse the repository at this point in the history
This is a small fix to change the idx type from int to unsigned.

Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Abhijeet Kolekar authored and John W. Linville committed Jul 14, 2008
1 parent 9a9ad0c commit 3eb2011
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl-3945-led.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct iwl3945_led {
int (*led_on) (struct iwl3945_priv *priv, int led_id);
int (*led_off) (struct iwl3945_priv *priv, int led_id);
int (*led_pattern) (struct iwl3945_priv *priv, int led_id,
int idx);
unsigned int idx);

enum led_type type;
unsigned int registered;
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/wireless/iwlwifi/iwl-led.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ static int iwl_send_led_cmd(struct iwl_priv *priv, struct iwl_led_cmd *led_cmd)
}

/* Set led pattern command */
static int iwl4965_led_pattern(struct iwl_priv *priv, int led_id, int idx)
static int iwl4965_led_pattern(struct iwl_priv *priv, int led_id,
unsigned int idx)
{
struct iwl_led_cmd led_cmd = {
.id = led_id,
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl-led.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct iwl_led {

int (*led_on) (struct iwl_priv *priv, int led_id);
int (*led_off) (struct iwl_priv *priv, int led_id);
int (*led_pattern) (struct iwl_priv *priv, int led_id, int idx);
int (*led_pattern) (struct iwl_priv *priv, int led_id, unsigned int idx);

enum led_type type;
unsigned int registered;
Expand Down

0 comments on commit 3eb2011

Please sign in to comment.