]> www.infradead.org Git - users/willy/xarray.git/commit
fbdev/stifb: Allocate fb_info instance with framebuffer_alloc()
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 20 Dec 2023 13:22:55 +0000 (14:22 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 12 Jan 2024 11:38:37 +0000 (12:38 +0100)
commitb362179731f0b59b8108b6afb95262ec88279759
treef5794a28a4396532dd98b0b4f10613dd53bd42a0
parent12b8de566fa9ec428e724f955735fd1ca278ca4c
fbdev/stifb: Allocate fb_info instance with framebuffer_alloc()

Allocate stifb's instance of fb_info with framebuffer_alloc(). This
is the preferred way of creating fb_info with associated driver data
stored in struct fb_info.par. Requires several, but minor, changes
through out the driver's code.

The intended side effect of this patch is that the new instance of
struct fb_info now has its device field correctly set to the parent
device of the STI ROM. A later patch can detect if the device is the
firmware's primary output. It is also now correctly located within
the Linux device hierarchy.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Helge Deller <deller@gmx.de>
Reviewed-by: Helge Deller <deller@gmx.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/stifb.c