diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 13:22:44 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 13:22:44 -0400 |
commit | c893e7c64e36087dceb4662917976a81d1754fc0 (patch) | |
tree | 30e441fe3e13fc8fcf9690bfe5222f404e19daa0 /drivers/media/video/s5p-tv | |
parent | ec3ed85f926f4e900bc48cec6e72abbe6475321f (diff) | |
parent | 2cefabc00ffdc1f22f960df946ae41b163081d5e (diff) |
Merge branch 'patches_for_v3.6' into v4l_for_linus
* patches_for_v3.6: (174 commits)
v4l: Export v4l2-common.h in include/linux/Kbuild
media: Revert "[media] Terratec Cinergy S2 USB HD Rev.2"
[media] media: Use pr_info not homegrown pr_reg macro
[media] Terratec Cinergy S2 USB HD Rev.2
[media] v4l: Correct conflicting V4L2 subdev selection API documentation
[media] Feature removal: V4L2 selections API target and flag definitions
[media] v4l: Unify selection flags documentation
[media] v4l: Unify selection flags
[media] v4l: Common documentation for selection targets
[media] v4l: Unify selection targets across V4L2 and V4L2 subdev interfaces
[media] v4l: Remove "_ACTUAL" from subdev selection API target definition names
[media] V4L: Remove "_ACTIVE" from the selection target name definitions
[media] media: dvb-usb: print mac address via native %pM
[media] s5p-tv: Use module_i2c_driver in sii9234_drv.c file
[media] media: gpio-ir-recv: add allowed_protos for platform data
[media] s5p-jpeg: Use module_platform_driver in jpeg-core.c file
[media] saa7134: fix spelling of detach in label
[media] cx88-blackbird: replace ioctl by unlocked_ioctl
[media] cx88: don't use current_norm
[media] cx88: fix a number of v4l2-compliance violations
...
Diffstat (limited to 'drivers/media/video/s5p-tv')
-rw-r--r-- | drivers/media/video/s5p-tv/mixer_video.c | 8 | ||||
-rw-r--r-- | drivers/media/video/s5p-tv/sii9234_drv.c | 12 |
2 files changed, 5 insertions, 15 deletions
diff --git a/drivers/media/video/s5p-tv/mixer_video.c b/drivers/media/video/s5p-tv/mixer_video.c index 33fde2a763ec..6c74b05d1f95 100644 --- a/drivers/media/video/s5p-tv/mixer_video.c +++ b/drivers/media/video/s5p-tv/mixer_video.c | |||
@@ -367,7 +367,7 @@ static int mxr_g_selection(struct file *file, void *fh, | |||
367 | return -EINVAL; | 367 | return -EINVAL; |
368 | 368 | ||
369 | switch (s->target) { | 369 | switch (s->target) { |
370 | case V4L2_SEL_TGT_CROP_ACTIVE: | 370 | case V4L2_SEL_TGT_CROP: |
371 | s->r.left = geo->src.x_offset; | 371 | s->r.left = geo->src.x_offset; |
372 | s->r.top = geo->src.y_offset; | 372 | s->r.top = geo->src.y_offset; |
373 | s->r.width = geo->src.width; | 373 | s->r.width = geo->src.width; |
@@ -380,7 +380,7 @@ static int mxr_g_selection(struct file *file, void *fh, | |||
380 | s->r.width = geo->src.full_width; | 380 | s->r.width = geo->src.full_width; |
381 | s->r.height = geo->src.full_height; | 381 | s->r.height = geo->src.full_height; |
382 | break; | 382 | break; |
383 | case V4L2_SEL_TGT_COMPOSE_ACTIVE: | 383 | case V4L2_SEL_TGT_COMPOSE: |
384 | case V4L2_SEL_TGT_COMPOSE_PADDED: | 384 | case V4L2_SEL_TGT_COMPOSE_PADDED: |
385 | s->r.left = geo->dst.x_offset; | 385 | s->r.left = geo->dst.x_offset; |
386 | s->r.top = geo->dst.y_offset; | 386 | s->r.top = geo->dst.y_offset; |
@@ -449,11 +449,11 @@ static int mxr_s_selection(struct file *file, void *fh, | |||
449 | res.height = geo->dst.full_height; | 449 | res.height = geo->dst.full_height; |
450 | break; | 450 | break; |
451 | 451 | ||
452 | case V4L2_SEL_TGT_CROP_ACTIVE: | 452 | case V4L2_SEL_TGT_CROP: |
453 | target = &geo->src; | 453 | target = &geo->src; |
454 | stage = MXR_GEOMETRY_CROP; | 454 | stage = MXR_GEOMETRY_CROP; |
455 | break; | 455 | break; |
456 | case V4L2_SEL_TGT_COMPOSE_ACTIVE: | 456 | case V4L2_SEL_TGT_COMPOSE: |
457 | case V4L2_SEL_TGT_COMPOSE_PADDED: | 457 | case V4L2_SEL_TGT_COMPOSE_PADDED: |
458 | target = &geo->dst; | 458 | target = &geo->dst; |
459 | stage = MXR_GEOMETRY_COMPOSE; | 459 | stage = MXR_GEOMETRY_COMPOSE; |
diff --git a/drivers/media/video/s5p-tv/sii9234_drv.c b/drivers/media/video/s5p-tv/sii9234_drv.c index 0f31eccd7b80..6d348f90237a 100644 --- a/drivers/media/video/s5p-tv/sii9234_drv.c +++ b/drivers/media/video/s5p-tv/sii9234_drv.c | |||
@@ -419,14 +419,4 @@ static struct i2c_driver sii9234_driver = { | |||
419 | .id_table = sii9234_id, | 419 | .id_table = sii9234_id, |
420 | }; | 420 | }; |
421 | 421 | ||
422 | static int __init sii9234_init(void) | 422 | module_i2c_driver(sii9234_driver); |
423 | { | ||
424 | return i2c_add_driver(&sii9234_driver); | ||
425 | } | ||
426 | module_init(sii9234_init); | ||
427 | |||
428 | static void __exit sii9234_exit(void) | ||
429 | { | ||
430 | i2c_del_driver(&sii9234_driver); | ||
431 | } | ||
432 | module_exit(sii9234_exit); | ||