Commit 87990652 authored by Wentong Wu's avatar Wentong Wu Committed by Hans Verkuil

media: ivsc: csi: remove privacy status in struct mei_csi

The privacy status is maintained by privacy_ctrl, on which all
of the privacy status changes will go through, so there is no
point in maintaining one more element any more.
Reported-by: default avatarHao Yao <hao.yao@intel.com>
Signed-off-by: default avatarWentong Wu <wentong.wu@intel.com>
Tested-by: default avatarJason Chen <jason.z.chen@intel.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent a813f168
...@@ -138,9 +138,6 @@ struct mei_csi { ...@@ -138,9 +138,6 @@ struct mei_csi {
u32 nr_of_lanes; u32 nr_of_lanes;
/* frequency of the CSI-2 link */ /* frequency of the CSI-2 link */
u64 link_freq; u64 link_freq;
/* privacy status */
enum ivsc_privacy_status status;
}; };
static const struct v4l2_mbus_framefmt mei_csi_format_mbus_default = { static const struct v4l2_mbus_framefmt mei_csi_format_mbus_default = {
...@@ -271,10 +268,9 @@ static void mei_csi_rx(struct mei_cl_device *cldev) ...@@ -271,10 +268,9 @@ static void mei_csi_rx(struct mei_cl_device *cldev)
switch (notif.cmd_id) { switch (notif.cmd_id) {
case CSI_PRIVACY_NOTIF: case CSI_PRIVACY_NOTIF:
if (notif.cont.cont < CSI_PRIVACY_MAX) { if (notif.cont.cont < CSI_PRIVACY_MAX)
csi->status = notif.cont.cont; v4l2_ctrl_s_ctrl(csi->privacy_ctrl,
v4l2_ctrl_s_ctrl(csi->privacy_ctrl, csi->status); notif.cont.cont == CSI_PRIVACY_ON);
}
break; break;
case CSI_SET_OWNER: case CSI_SET_OWNER:
case CSI_SET_CONF: case CSI_SET_CONF:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment