Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
09c8bb26
Commit
09c8bb26
authored
12 years ago
by
Eric Nelson
Committed by
Stefano Babic
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
i.MX video: struct fb_videomode can be const
Signed-off-by:
Eric Nelson
<
eric.nelson@boundarydevices.com
>
parent
6e142320
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/video/mxc_ipuv3_fb.c
+5
-3
5 additions, 3 deletions
drivers/video/mxc_ipuv3_fb.c
include/ipu_pixfmt.h
+3
-1
3 additions, 1 deletion
include/ipu_pixfmt.h
with
8 additions
and
4 deletions
drivers/video/mxc_ipuv3_fb.c
+
5
−
3
View file @
09c8bb26
...
...
@@ -45,7 +45,7 @@ static int mxcfb_unmap_video_memory(struct fb_info *fbi);
/* graphics setup */
static
GraphicDevice
panel
;
static
struct
fb_videomode
*
gmode
;
static
struct
fb_videomode
const
*
gmode
;
static
uint8_t
gdisp
;
static
uint32_t
gpixfmt
;
...
...
@@ -503,7 +503,7 @@ static struct fb_info *mxcfb_init_fbinfo(void)
* @return Appropriate error code to the kernel common code
*/
static
int
mxcfb_probe
(
u32
interface_pix_fmt
,
uint8_t
disp
,
struct
fb_videomode
*
mode
)
struct
fb_videomode
const
*
mode
)
{
struct
fb_info
*
fbi
;
struct
mxcfb_info
*
mxcfbi
;
...
...
@@ -619,7 +619,9 @@ void video_set_lut(unsigned int index, /* color number */
return
;
}
int
ipuv3_fb_init
(
struct
fb_videomode
*
mode
,
uint8_t
disp
,
uint32_t
pixfmt
)
int
ipuv3_fb_init
(
struct
fb_videomode
const
*
mode
,
uint8_t
disp
,
uint32_t
pixfmt
)
{
gmode
=
mode
;
gdisp
=
disp
;
...
...
This diff is collapsed.
Click to expand it.
include/ipu_pixfmt.h
+
3
−
1
View file @
09c8bb26
...
...
@@ -76,7 +76,9 @@
#define IPU_PIX_FMT_YVU422P fourcc('Y', 'V', '1', '6')
/*< 16 YVU 4:2:2 */
#define IPU_PIX_FMT_YUV422P fourcc('4', '2', '2', 'P')
/*< 16 YUV 4:2:2 */
int
ipuv3_fb_init
(
struct
fb_videomode
*
mode
,
uint8_t
disp
,
uint32_t
pixfmt
);
int
ipuv3_fb_init
(
struct
fb_videomode
const
*
mode
,
uint8_t
disp
,
uint32_t
pixfmt
);
void
ipuv3_fb_shutdown
(
void
);
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment