diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-02-19 18:44:51 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-02-26 08:45:58 -0300 |
commit | 7e4f23d53d0f5b9934302324a2d736d1c07c2d2b (patch) | |
tree | 6bf5c10452a48318a0a3cdbc5d4e38d7b9eb3b24 /drivers/media/i2c/cx25840/cx25840-core.h | |
parent | db749359059f3049fc5c66950e5ca85f67d7c1b0 (diff) | |
download | op-kernel-dev-7e4f23d53d0f5b9934302324a2d736d1c07c2d2b.zip op-kernel-dev-7e4f23d53d0f5b9934302324a2d736d1c07c2d2b.tar.gz |
[media] cx25840: better document the media pads
Use an enum to better document the media pads.
No functional changes.
Suggested-by: Prabhakar Lad <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/i2c/cx25840/cx25840-core.h')
-rw-r--r-- | drivers/media/i2c/cx25840/cx25840-core.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/media/i2c/cx25840/cx25840-core.h b/drivers/media/i2c/cx25840/cx25840-core.h index 17b409f..fdea48c 100644 --- a/drivers/media/i2c/cx25840/cx25840-core.h +++ b/drivers/media/i2c/cx25840/cx25840-core.h @@ -41,6 +41,14 @@ enum cx25840_model { CX25837, }; +enum cx25840_media_pads { + CX25840_PAD_INPUT, + CX25840_PAD_VID_OUT, + CX25840_PAD_VBI_OUT, + + CX25840_NUM_PADS +}; + struct cx25840_state { struct i2c_client *c; struct v4l2_subdev sd; @@ -65,7 +73,7 @@ struct cx25840_state { struct work_struct fw_work; /* work entry for fw load */ struct cx25840_ir_state *ir_state; #if defined(CONFIG_MEDIA_CONTROLLER) - struct media_pad pads[3]; + struct media_pad pads[CX25840_NUM_PADS]; #endif }; |