diff options
| author | Thomas Zimmermann <[email protected]> | 2025-03-21 09:53:55 +0000 |
|---|---|---|
| committer | Lee Jones <[email protected]> | 2025-04-10 09:38:57 +0000 |
| commit | 7e3711eb87c584ed224a7ad7000eba36e6fa3a51 (patch) | |
| tree | 5ab939c5f2b4bb0df5c5ea31ef0c227ff570033e /rust/helpers/xarray.c | |
| parent | fbdev: Rework fb_blank() (diff) | |
| download | kernel-7e3711eb87c584ed224a7ad7000eba36e6fa3a51.tar.gz kernel-7e3711eb87c584ed224a7ad7000eba36e6fa3a51.zip | |
fbdev: Track display blanking state
Store the display's blank status in struct fb_info.blank and track
it in fb_blank(). As an extra, the status is now available from the
sysfs blank attribute.
Support for blanking is optional. Therefore framebuffer_alloc()
initializes the state to FB_BLANK_UNBLANK (i.e., the display is
on). If the fb_blank callback has been set, register_framebuffer()
sets the state to FB_BLANK_POWERDOWN. On the first modeset, the
call to fb_blank() will update it to _UNBLANK. This is important,
as listeners to FB_EVENT_BLANK will now see the display being
switched on.
Signed-off-by: Thomas Zimmermann <[email protected]>
Acked-by: Simona Vetter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions
