mfd: max77686: Ensure device type IDs are architecture agnostic

Extinguishes:

../drivers/mfd/max77686.c: In function ‘max77686_i2c_probe’:
../drivers/mfd/max77686.c:254:20:
	warning: cast from pointer to integer of different size

Signed-off-by: Lee Jones <lee.jones@linaro.org>
此提交包含在:
Lee Jones
2014-07-24 17:07:16 +01:00
父節點 a259f3896a
當前提交 ec8bd56699
共有 2 個檔案被更改,包括 3 行新增4 行删除

查看文件

@@ -251,10 +251,9 @@ static int max77686_i2c_probe(struct i2c_client *i2c,
if (!match)
return -EINVAL;
max77686->type = (int)match->data;
} else {
max77686->type = (unsigned long)match->data;
} else
max77686->type = id->driver_data;
}
i2c_set_clientdata(i2c, max77686);
max77686->dev = &i2c->dev;