Thread (16 messages) 16 messages, 5 authors, 2024-03-28

Re: [PATCH v2 2/3] arch: Remove struct fb_info from video helpers

From: Helge Deller <deller@gmx.de>
Date: 2024-03-28 15:00:39
Also in: dri-devel, linux-arch, linux-arm-kernel, linux-m68k, linux-mips, linux-sh, linuxppc-dev, lkml, loongarch, sparclinux

On 3/28/24 14:33, Thomas Zimmermann wrote:
Am 28.03.24 um 12:04 schrieb Helge Deller:
quoted
On 3/27/24 21:41, Thomas Zimmermann wrote:
quoted
The per-architecture video helpers do not depend on struct fb_info
or anything else from fbdev. Remove it from the interface and replace
fb_is_primary_device() with video_is_primary_device(). The new helper
Since you rename this function, wouldn't something similar to

device_is_primary_display()
    or
device_is_primary_console()
    or
is_primary_graphics_device()
    or
is_primary_display_device()

be a better name?
The video_ prefix is there to signal that the code is part of the video subsystem.

But there's too much code that tried to figure out a default video
device. So I actually have different plans for this function. I'd
like to replace it with a helper that returns the default device
instead of just testing for it. Sample code for x86 is already in
vgaarb.c. [1] The function's name would then be
video_default_device() and return the appropriate struct device*.
video_is_primary device() will be removed. This rename here is the
easiest step towards the new helper. Ok?
Sounds ok.

Helge
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help