fix: driver: modify some fields and comments

CHAMPION-91

change FBIOPAN_DISPLAY IOCTL command to _FBIOC(0x0016).
change  xoffest to xoffset in fb_planeinfo_s.
modify comments for xoffset and yoffset in fb_planeinfo_s.
add comment for pandisplay interface.

Signed-off-by: liushuai25 <liushuai25@xiaomi.com>
Change-Id: Idb7805dd9691b849f19e3d7010bcfabbaa48797b
This commit is contained in:
liushuai25
2021-10-08 10:56:17 +08:00
parent a7f50294a5
commit 7df6d25fc3
+5 -3
View File
@@ -283,7 +283,7 @@
#define FBIOGET_FRAMERATE _FBIOC(0x0015) /* Get frame rate
* Argument: int* */
#define FBIOPAN_DISPLAY _FBIOC(0x0020) /* Pan display
#define FBIOPAN_DISPLAY _FBIOC(0x0016) /* Pan display
* Argument: read-only struct
* fb_planeinfo_s* */
@@ -326,8 +326,8 @@ struct fb_planeinfo_s
uint8_t bpp; /* Bits per pixel */
uint32_t xres_virtual; /* Virtual Horizontal resolution in pixel columns */
uint32_t yres_virtual; /* Virtual Vertical resolution in pixel rows */
uint32_t xoffest; /* X offset */
uint32_t yoffset; /* Y offset */
uint32_t xoffset; /* Offset from virtual to visible resolution */
uint32_t yoffset; /* Offset from virtual to visible resolution */
};
/* This structure describes an area. */
@@ -592,6 +592,8 @@ struct fb_vtable_s
# endif
#endif
/* Pan display for multiple buffers. */
int (*pandisplay)(FAR struct fb_vtable_s *vtable,
FAR struct fb_planeinfo_s *pinfo);