diff options
author | Thierry Reding | 2018-05-03 14:46:24 +0200 |
---|---|---|
committer | Linus Walleij | 2018-05-16 14:35:24 +0200 |
commit | 668f06579e99762ec6ef4a97ba824bc812a9ab2f (patch) | |
tree | 2fa597f48cc8c47212bfaaf39f078a378cbc2bcc /ipc | |
parent | gpiolib: fix gpiochip_machine_hog() (diff) | |
download | kernel-qcow2-linux-668f06579e99762ec6ef4a97ba824bc812a9ab2f.tar.gz kernel-qcow2-linux-668f06579e99762ec6ef4a97ba824bc812a9ab2f.tar.xz kernel-qcow2-linux-668f06579e99762ec6ef4a97ba824bc812a9ab2f.zip |
gpio: ge: Fix build warning
Casting a pointer to u16 can produce a compiler warning such as this:
drivers/gpio/gpio-ge.c: In function 'gef_gpio_probe':
drivers/gpio/gpio-ge.c:83:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
gc->ngpio = (u16)of_device_get_match_data(&pdev->dev);
^
Cast the pointer through a uintptr_t to avoid the warning.
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions