iwlwifi: make index unsigned int for iwl_send_led_cmd
authorAbhijeet Kolekar <abhijeet.kolekar@intel.com>
Fri, 11 Jul 2008 03:53:42 +0000 (11:53 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Jul 2008 18:53:00 +0000 (14:53 -0400)
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>
drivers/net/wireless/iwlwifi/iwl-3945-led.h
drivers/net/wireless/iwlwifi/iwl-led.c
drivers/net/wireless/iwlwifi/iwl-led.h

index 6463e6e34aaa2da0bdd9fea9f9c2cdca8a6ff104..47b7e0bac802e803170a333b557807047ffd30c6 100644 (file)
@@ -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;
index 0c09b901a253b25fa11616e7db0b947c2fb90ea9..899d7a2567a8dd42045f6753ec72c6e86208902f 100644 (file)
@@ -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,
index 05e6a6113b74d56978138ff15d5174e262af26fb..1980ae5a7e8297aadf36418518030ce09bf5a089 100644 (file)
@@ -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;