]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mfd: max14577: Cast to architecture agnostic data type
authorLee Jones <lee.jones@linaro.org>
Tue, 20 May 2014 14:37:41 +0000 (15:37 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 3 Jun 2014 07:11:50 +0000 (08:11 +0100)
drivers/mfd/max14577.c:334:25:
  warning: cast from pointer to integer of different size
    max14577->dev_type = (unsigned int)of_id->data;
                         ^
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max14577.c

index 36de88d0deddd420327352cae4b5d5532ddcdb8c..4a5e885383f8a5a866d78545b6f59150a0d6cb2f 100644 (file)
@@ -331,7 +331,8 @@ static int max14577_i2c_probe(struct i2c_client *i2c,
 
                of_id = of_match_device(max14577_dt_match, &i2c->dev);
                if (of_id)
-                       max14577->dev_type = (unsigned int)of_id->data;
+                       max14577->dev_type =
+                               (enum maxim_device_type)of_id->data;
        } else {
                max14577->dev_type = id->driver_data;
        }