Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os 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>

authored by

Lad, Prabhakar and committed by
Mauro Carvalho Chehab
d97ada97 68f9f8ae

+1 -5
+1 -3
drivers/media/i2c/ths7303.c
··· 356 356 int ret; 357 357 u8 mask; 358 358 359 - state->stream_on = pdata->init_enable; 360 - 361 - mask = state->stream_on ? 0xff : 0xf8; 359 + mask = 0xf8; 362 360 363 361 ret = ths7303_write(sd, THS7303_CHANNEL_1, pdata->ch_1 & mask); 364 362 if (ret)
-2
include/media/ths7303.h
··· 30 30 * @ch_1: Bias value for channel one. 31 31 * @ch_2: Bias value for channel two. 32 32 * @ch_3: Bias value for channel three. 33 - * @init_enable: initalize on init. 34 33 */ 35 34 struct ths7303_platform_data { 36 35 u8 ch_1; 37 36 u8 ch_2; 38 37 u8 ch_3; 39 - u8 init_enable; 40 38 }; 41 39 42 40 #endif