Explorar el Código

mfd: max14577: Cast to architecture agnostic data type

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>
Lee Jones hace 11 años
padre
commit
fab8445c55
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      drivers/mfd/max14577.c

+ 2 - 1
drivers/mfd/max14577.c

@@ -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;
 	}