Skip to content
Snippets Groups Projects
Verified Commit feb7a097 authored by rahix's avatar rahix
Browse files

fix(display): Don't require locking for backlight


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent e99d829f
No related branches found
No related tags found
No related merge requests found
......@@ -1352,12 +1352,12 @@ API(API_DISP_FRAMEBUFFER, int epic_disp_framebuffer(union disp_framebuffer *fb))
/**
* Set the backlight brightness value
* Set the backlight brightness.
*
* :param brightness: brightness from 0 - 100
* :return: ``0`` on success or negative value in case of an error:
* Note that this function does not require acquiring the display.
*
* - ``-EBUSY``: Display was already locked from another task.
* :param brightness: brightness from 0 - 100
* :return: ``0`` on success or negative value in case of an error
*/
API(API_DISP_BACKLIGHT, int epic_disp_backlight(uint16_t brightness));
......
......@@ -173,11 +173,7 @@ int epic_disp_framebuffer(union disp_framebuffer *fb)
int epic_disp_backlight(uint16_t brightness)
{
int cl = check_lock();
if (cl < 0) {
return cl;
}
/* TODO: lock? */
LCD_SetBacklight(brightness);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment