diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-02-14 23:10:20 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-21 19:32:03 -0400 |
commit | 0ae79d993cd5ce425bedebcbd2f8c4fa310acfe6 (patch) | |
tree | b293dec5aab65aa2851aa77d7f4d1d4151f72b97 /drivers/media/video | |
parent | a34ec5f3743950cadb8f512c884b8c9dbaa9a7a5 (diff) |
[media] tuner-core: Fix a few comments on it
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/tuner-core.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 2a0bea145a78..dcf03face265 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c | |||
@@ -128,7 +128,7 @@ struct tuner { | |||
128 | * tuner attach/detach logic | 128 | * tuner attach/detach logic |
129 | */ | 129 | */ |
130 | 130 | ||
131 | /** This macro allows us to probe dynamically, avoiding static links */ | 131 | /* This macro allows us to probe dynamically, avoiding static links */ |
132 | #ifdef CONFIG_MEDIA_ATTACH | 132 | #ifdef CONFIG_MEDIA_ATTACH |
133 | #define tuner_symbol_probe(FUNCTION, ARGS...) ({ \ | 133 | #define tuner_symbol_probe(FUNCTION, ARGS...) ({ \ |
134 | int __r = -EINVAL; \ | 134 | int __r = -EINVAL; \ |
@@ -412,13 +412,20 @@ attach_failed: | |||
412 | return; | 412 | return; |
413 | } | 413 | } |
414 | 414 | ||
415 | /* | 415 | /** |
416 | * This function apply tuner config to tuner specified | 416 | * tuner_s_type_addr - Sets the tuner type for a device |
417 | * by tun_setup structure. I addr is unset, then admin status | 417 | * |
418 | * and tun addr status is more precise then current status, | 418 | * @sd: subdev descriptor |
419 | * it's applied. Otherwise status and type are applied only to | 419 | * @tun_setup: type to be associated to a given tuner i2c address |
420 | * tuner with exactly the same addr. | 420 | * |
421 | */ | 421 | * This function applys the tuner config to tuner specified |
422 | * by tun_setup structure. | ||
423 | * If tuner I2C address is UNSET, then it will only set the device | ||
424 | * if the tuner supports the mode specified in the call. | ||
425 | * If the address is specified, the change will be applied only if | ||
426 | * tuner I2C address matches. | ||
427 | * The call can change the tuner number and the tuner mode. | ||
428 | */ | ||
422 | static int tuner_s_type_addr(struct v4l2_subdev *sd, | 429 | static int tuner_s_type_addr(struct v4l2_subdev *sd, |
423 | struct tuner_setup *tun_setup) | 430 | struct tuner_setup *tun_setup) |
424 | { | 431 | { |