diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-08-20 17:03:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 08:37:04 -0400 |
commit | 6fbf4d0412d5084d555a5ffca31e683de7fcf9be (patch) | |
tree | 5c00c9cca48ef659f3397ce0f8254002c0e8026a | |
parent | d71b0b348f0ac68c7a330ceb97b80d9e37f14545 (diff) |
[media] usbtv: fix sparse warnings
drivers/media/usb/usbtv/usbtv-video.c:285:14: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:285:14: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:285:14: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:285:14: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:285:14: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:285:14: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:287:20: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:287:20: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:287:20: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:287:20: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:287:20: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:287:20: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:288:15: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:288:15: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:288:15: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:288:15: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:288:15: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:288:15: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:289:20: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:289:20: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:289:20: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:289:20: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:289:20: warning: cast to restricted __be32
drivers/media/usb/usbtv/usbtv-video.c:289:20: warning: cast to restricted __be32
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/media/usb/usbtv/usbtv-video.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c index 692c7188a8a6..3d6ed1f7509e 100644 --- a/drivers/media/usb/usbtv/usbtv-video.c +++ b/drivers/media/usb/usbtv/usbtv-video.c | |||
@@ -253,7 +253,7 @@ static int usbtv_setup_capture(struct usbtv *usbtv) | |||
253 | * 720 pixel lines, as the chunk is 240 words long, which is 480 pixels. | 253 | * 720 pixel lines, as the chunk is 240 words long, which is 480 pixels. |
254 | * Therefore, we break down the chunk into two halves before copyting, | 254 | * Therefore, we break down the chunk into two halves before copyting, |
255 | * so that we can interleave a line if needed. */ | 255 | * so that we can interleave a line if needed. */ |
256 | static void usbtv_chunk_to_vbuf(u32 *frame, u32 *src, int chunk_no, int odd) | 256 | static void usbtv_chunk_to_vbuf(u32 *frame, __be32 *src, int chunk_no, int odd) |
257 | { | 257 | { |
258 | int half; | 258 | int half; |
259 | 259 | ||
@@ -271,7 +271,7 @@ static void usbtv_chunk_to_vbuf(u32 *frame, u32 *src, int chunk_no, int odd) | |||
271 | /* Called for each 256-byte image chunk. | 271 | /* Called for each 256-byte image chunk. |
272 | * First word identifies the chunk, followed by 240 words of image | 272 | * First word identifies the chunk, followed by 240 words of image |
273 | * data and padding. */ | 273 | * data and padding. */ |
274 | static void usbtv_image_chunk(struct usbtv *usbtv, u32 *chunk) | 274 | static void usbtv_image_chunk(struct usbtv *usbtv, __be32 *chunk) |
275 | { | 275 | { |
276 | int frame_id, odd, chunk_no; | 276 | int frame_id, odd, chunk_no; |
277 | u32 *frame; | 277 | u32 *frame; |
@@ -362,7 +362,7 @@ static void usbtv_iso_cb(struct urb *ip) | |||
362 | 362 | ||
363 | for (offset = 0; USBTV_CHUNK_SIZE * offset < size; offset++) | 363 | for (offset = 0; USBTV_CHUNK_SIZE * offset < size; offset++) |
364 | usbtv_image_chunk(usbtv, | 364 | usbtv_image_chunk(usbtv, |
365 | (u32 *)&data[USBTV_CHUNK_SIZE * offset]); | 365 | (__be32 *)&data[USBTV_CHUNK_SIZE * offset]); |
366 | } | 366 | } |
367 | 367 | ||
368 | resubmit: | 368 | resubmit: |