lkml.org 
[lkml]   [2023]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 10/15] staging: fbtft: core: Introduce backlight_is_blank()
    On Sat, Jan 07, 2023 at 07:26:24PM +0100, Sam Ravnborg via B4 Submission Endpoint wrote:
    > From: Sam Ravnborg <sam@ravnborg.org>
    >
    > Avoiding direct access to backlight_properties.props.
    >
    > Access to the deprecated props.fb_blank replaced by backlight_is_blank().
    > Access to props.power is dropped - it was only used for debug.

    ...

    > + if (blank)
    > gpiod_set_value(par->gpio.led[0], !polarity);
    > + else
    > + gpiod_set_value(par->gpio.led[0], polarity);

    if (blank)
    polarity = !polarity;

    gpiod_set_value(par->gpio.led[0], polarity);

    ?

    --
    With Best Regards,
    Andy Shevchenko


    \
     
     \ /
      Last update: 2023-03-26 23:32    [W:4.201 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site