Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

video/sticore: Store ROM device in STI struct

Store the ROM's parent device in each STI struct, so we can associate
the STI framebuffer with a device.

The new field will eventually replace the fbdev subsystem's info field,
which the function fb_is_primary_device() currently requires to detect
the firmware's output. By using the device instead of the framebuffer
info, a later patch can generalize the helper for use in non-fbdev code.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Thomas Zimmermann and committed by
Helge Deller
12b8de56 33cd6ea9

+9
+5
drivers/video/sticore.c
··· 1041 1041 1042 1042 print_pa_hwpath(dev, sti->pa_path); 1043 1043 sticore_check_for_default_sti(sti, sti->pa_path); 1044 + 1045 + sti->dev = &dev->dev; 1046 + 1044 1047 return 0; 1045 1048 } 1046 1049 ··· 1087 1084 pr_warn("Unable to handle STI device '%s'\n", pci_name(pd)); 1088 1085 return -ENODEV; 1089 1086 } 1087 + 1088 + sti->dev = &pd->dev; 1090 1089 #endif /* CONFIG_PCI */ 1091 1090 1092 1091 return 0;
+4
include/video/sticore.h
··· 2 2 #ifndef STICORE_H 3 3 #define STICORE_H 4 4 5 + struct device; 5 6 struct fb_info; 6 7 7 8 /* generic STI structures & functions */ ··· 370 369 371 370 /* pointer to the fb_info where this STI device is used */ 372 371 struct fb_info *info; 372 + 373 + /* pointer to the parent device */ 374 + struct device *dev; 373 375 374 376 /* pointer to all internal data */ 375 377 struct sti_all_data *sti_data;