diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2017-12-01 06:16:56 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2017-12-01 09:57:42 +0100 |
commit | 8f52df50d9366f770a894d14ef724e5e04574e98 (patch) | |
tree | 91071d5f0b1f2bb4c1f476c7e0b362784f1e4b1d /drivers/mfd | |
parent | Linux 4.15-rc1 (diff) | |
download | linux-8f52df50d9366f770a894d14ef724e5e04574e98.tar.xz linux-8f52df50d9366f770a894d14ef724e5e04574e98.zip |
leds: pm8058: Silence pointer to integer size warning
The pointer returned by of_device_get_match_data() doesn't have the same
size as u32 on 64-bit architectures, causing a compile warning when
compile-testing the driver on such platform.
Cast the return value of of_device_get_match_data() to unsigned long and
then to u32 to silence this warning.
Fixes: 7f866986e705 ("leds: add PM8058 LEDs driver")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
0 files changed, 0 insertions, 0 deletions