PCI/VGA: Factor out vga_select_framebuffer_device()
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 24 Feb 2022 22:47:45 +0000 (16:47 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Mar 2022 00:30:56 +0000 (18:30 -0600)
commit60a9bac8ab48ddbf68dc280cd26879583e9d72ba
tree241524338d0fb94d255f721a3a86fec14a21cd87
parentc1593ddd894d0518fc96fe7f531f3a5c919b8463
PCI/VGA: Factor out vga_select_framebuffer_device()

On x86 and ia64, if a VGA device BARs include a framebuffer reported by
platform firmware, we select the device as the default VGA device.  Factor
this code to a separate function.  No functional change intended.

Link: https://lore.kernel.org/r/20220224224753.297579-4-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Bruno Prémont <bonbons@linux-vserver.org>
drivers/pci/vgaarb.c