mfd: max14577: Cast to architecture agnostic data type
[firefly-linux-kernel-4.4.55.git] / 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;
        }