Skip to contentSkip to conversation

fbcon: Declare struct fb_info.fbcon_par as of type struct fbcon_par

PATCH Applied Thomas Zimmermann 2 participants 2 messages Feb 10 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbcon: Declare struct fb_info.fbcon_par as of type struct fbcon_par

The only correct type for the field fbcon_par in struct fb_info is struct fbcon_par. Declare is as such. The field is a pointer to fbcon-private data.

---
 include/linux/fb.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/linux/fb.h +2 -1
index 65fb70382675..b8b6f54f3312 100644
@@ -18,6 +18,7 @@ struct backlight_device;
 struct device;
 struct device_node;
 struct fb_info;
+struct fbcon_par;
 struct file;
 struct i2c_adapter;
 struct inode;
@@ -506,7 +507,7 @@ struct fb_info {
 #define FBINFO_STATE_RUNNING	0
 #define FBINFO_STATE_SUSPENDED	1
 	u32 state;			/* Hardware state i.e suspend */
-	void *fbcon_par;                /* fbcon use-only private area */
+	struct fbcon_par *fbcon_par;    /* fbcon use-only private area */
 	/* From here on everything is device dependent */
 	void *par;
 
Signature · 1 line
2.52.0
maintainer Applied
#1 lore raw
Quoted 8 lines · Thomas Zimmermann

The only correct type for the field fbcon_par in struct fb_info is struct fbcon_par. Declare is as such. The field is a pointer to fbcon-private data.

---
  include/linux/fb.h | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

applied.
Thanks!
Helge