diff options
author | Lad, Prabhakar <prabhakar.csengg@gmail.com> | 2014-03-22 06:57:59 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-04-16 17:23:45 -0400 |
commit | 3d7543b9196cb0de8e65750f1da9ad155c22e12f (patch) | |
tree | 36455d618d2c47ad628f5737092ed6af2efce043 /include/media | |
parent | c8204930b21ea4d0a5504b40a73479ae318958dd (diff) |
[media] media: davinci: vpbe: use v4l2_fh for priority handling
This patch migrates the vpbe driver to use v4l2_fh for
priority handling. This also fixes v4l2-compliance test.
Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/davinci/vpbe_display.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/media/davinci/vpbe_display.h b/include/media/davinci/vpbe_display.h index 8dffffedbb59..637749a91432 100644 --- a/include/media/davinci/vpbe_display.h +++ b/include/media/davinci/vpbe_display.h | |||
@@ -16,6 +16,7 @@ | |||
16 | /* Header files */ | 16 | /* Header files */ |
17 | #include <linux/videodev2.h> | 17 | #include <linux/videodev2.h> |
18 | #include <media/v4l2-common.h> | 18 | #include <media/v4l2-common.h> |
19 | #include <media/v4l2-fh.h> | ||
19 | #include <media/videobuf2-dma-contig.h> | 20 | #include <media/videobuf2-dma-contig.h> |
20 | #include <media/davinci/vpbe_types.h> | 21 | #include <media/davinci/vpbe_types.h> |
21 | #include <media/davinci/vpbe_osd.h> | 22 | #include <media/davinci/vpbe_osd.h> |
@@ -94,8 +95,6 @@ struct vpbe_layer { | |||
94 | * has selected | 95 | * has selected |
95 | */ | 96 | */ |
96 | enum v4l2_memory memory; | 97 | enum v4l2_memory memory; |
97 | /* Used to keep track of state of the priority */ | ||
98 | struct v4l2_prio_state prio; | ||
99 | /* Used to store pixel format */ | 98 | /* Used to store pixel format */ |
100 | struct v4l2_pix_format pix_fmt; | 99 | struct v4l2_pix_format pix_fmt; |
101 | enum v4l2_field buf_field; | 100 | enum v4l2_field buf_field; |
@@ -134,14 +133,13 @@ struct vpbe_display { | |||
134 | 133 | ||
135 | /* File handle structure */ | 134 | /* File handle structure */ |
136 | struct vpbe_fh { | 135 | struct vpbe_fh { |
136 | struct v4l2_fh fh; | ||
137 | /* vpbe device structure */ | 137 | /* vpbe device structure */ |
138 | struct vpbe_display *disp_dev; | 138 | struct vpbe_display *disp_dev; |
139 | /* pointer to layer object for opened device */ | 139 | /* pointer to layer object for opened device */ |
140 | struct vpbe_layer *layer; | 140 | struct vpbe_layer *layer; |
141 | /* Indicates whether this file handle is doing IO */ | 141 | /* Indicates whether this file handle is doing IO */ |
142 | unsigned char io_allowed; | 142 | unsigned char io_allowed; |
143 | /* Used to keep track priority of this instance */ | ||
144 | enum v4l2_priority prio; | ||
145 | }; | 143 | }; |
146 | 144 | ||
147 | struct buf_config_params { | 145 | struct buf_config_params { |