diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-08-01 13:04:13 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-09-17 20:16:19 +0300 |
commit | fc9bd1cea522e19ffe908af0b8de4944b48073e5 (patch) | |
tree | 207490d50c0299eabfadb9dfd3333dca058a26d8 /drivers/media/i2c/msp3400-driver.h | |
parent | 44fd653bde54e49308efb77d121b66afae07d652 (diff) | |
download | linux-fc9bd1cea522e19ffe908af0b8de4944b48073e5.tar.xz |
media: msp3400: declare its own pads
As we don't need anymore to share pad numbers with similar
drivers, use its own pad definition instead of a global
model.
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/msp3400-driver.h')
-rw-r--r-- | drivers/media/i2c/msp3400-driver.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/media/i2c/msp3400-driver.h b/drivers/media/i2c/msp3400-driver.h index b6c7698bce5a..2bb9d5ff1bbd 100644 --- a/drivers/media/i2c/msp3400-driver.h +++ b/drivers/media/i2c/msp3400-driver.h @@ -52,6 +52,12 @@ extern int msp_standard; extern bool msp_dolby; extern int msp_stereo_thresh; +enum msp3400_pads { + MSP3400_PAD_IF_INPUT, + MSP3400_PAD_OUT, + MSP3400_NUM_PADS +}; + struct msp_state { struct v4l2_subdev sd; struct v4l2_ctrl_handler hdl; @@ -106,7 +112,7 @@ struct msp_state { unsigned int watch_stereo:1; #if IS_ENABLED(CONFIG_MEDIA_CONTROLLER) - struct media_pad pads[IF_AUD_DEC_PAD_NUM_PADS]; + struct media_pad pads[MSP3400_NUM_PADS]; #endif }; |