forked from Minki/linux
[media] media: i2c: ths7303: remove init_enable option from pdata
This patch removes init_enable option from pdata, the init_enable was intended that the device should start streaming video immediately but ideally the bridge drivers should call s_stream explicitly for such devices to start video. Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
68f9f8ae98
commit
d97ada97ae
@ -356,9 +356,7 @@ static int ths7303_setup(struct v4l2_subdev *sd)
|
|||||||
int ret;
|
int ret;
|
||||||
u8 mask;
|
u8 mask;
|
||||||
|
|
||||||
state->stream_on = pdata->init_enable;
|
mask = 0xf8;
|
||||||
|
|
||||||
mask = state->stream_on ? 0xff : 0xf8;
|
|
||||||
|
|
||||||
ret = ths7303_write(sd, THS7303_CHANNEL_1, pdata->ch_1 & mask);
|
ret = ths7303_write(sd, THS7303_CHANNEL_1, pdata->ch_1 & mask);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -30,13 +30,11 @@
|
|||||||
* @ch_1: Bias value for channel one.
|
* @ch_1: Bias value for channel one.
|
||||||
* @ch_2: Bias value for channel two.
|
* @ch_2: Bias value for channel two.
|
||||||
* @ch_3: Bias value for channel three.
|
* @ch_3: Bias value for channel three.
|
||||||
* @init_enable: initalize on init.
|
|
||||||
*/
|
*/
|
||||||
struct ths7303_platform_data {
|
struct ths7303_platform_data {
|
||||||
u8 ch_1;
|
u8 ch_1;
|
||||||
u8 ch_2;
|
u8 ch_2;
|
||||||
u8 ch_3;
|
u8 ch_3;
|
||||||
u8 init_enable;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user