01 Dec, 2017

1 commit

  • 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
    Reviewed-by: Linus Walleij
    Acked-by: Pavel Machek
    Signed-off-by: Lee Jones

    Bjorn Andersson
     

17 Aug, 2016

1 commit

  • This adds a driver for the six PM8058 LEDs, three ordinary LEDs,
    two "flash" LEDs and one "keypad" LED.

    The "keypad" and "flash" LEDs are not really hard-wired to these
    usecases: for example on the APQ8060 Dragonboard, the "keypad"
    LED is instead used to drive an IR LED used for the proximity
    sensor. The "flash" LEDs are just ordinary high-current LED
    drivers.

    Cc: linux-arm-msm@vger.kernel.org
    Cc: Andy Gross
    Cc: Stephen Boyd
    Signed-off-by: Linus Walleij
    Reviewed-by: Bjorn Andersson
    Signed-off-by: Jacek Anaszewski

    Linus Walleij