Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: wm8994-core: Naturalise cross-architecture discrepancies

If we compile the WM8994 for a 64bit architecture we receive the following
warnings:

drivers/mfd/wm8994-core.c: In function ‘wm8994_i2c_probe’:
drivers/mfd/wm8994-core.c:639:19:
warning: cast from pointer to integer of different size
wm8994->type = (int)of_id->data;
^

Signed-off-by: Lee Jones <lee.jones@linaro.org>

Lee Jones 7f8279ce 8bace2d5

+1 -1
+1 -1
drivers/mfd/wm8994-core.c
··· 636 636 if (i2c->dev.of_node) { 637 637 of_id = of_match_device(wm8994_of_match, &i2c->dev); 638 638 if (of_id) 639 - wm8994->type = (int)of_id->data; 639 + wm8994->type = (enum wm8994_type)of_id->data; 640 640 } else { 641 641 wm8994->type = id->driver_data; 642 642 }