diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-12-01 13:28:55 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-12-07 11:29:56 +0100 |
commit | 3a2e4b193690ff2e44e95856d90bdeaf337211f6 (patch) | |
tree | 2f0a4452a6072e783c754159d7020fb1229a2f40 /drivers/media/cec | |
parent | media: s5p-jpeg: Constify struct v4l2_m2m_ops (diff) | |
download | linux-3a2e4b193690ff2e44e95856d90bdeaf337211f6.tar.xz linux-3a2e4b193690ff2e44e95856d90bdeaf337211f6.zip |
media: cec-pin: drop unused 'enabled' field from struct cec_pin
This field is only set, but never used. Drop it.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/cec')
-rw-r--r-- | drivers/media/cec/core/cec-pin-priv.h | 1 | ||||
-rw-r--r-- | drivers/media/cec/core/cec-pin.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/cec/core/cec-pin-priv.h b/drivers/media/cec/core/cec-pin-priv.h index fb101f15865c..7bad5a0b7cb7 100644 --- a/drivers/media/cec/core/cec-pin-priv.h +++ b/drivers/media/cec/core/cec-pin-priv.h @@ -170,7 +170,6 @@ struct cec_pin { ktime_t ts; unsigned int wait_usecs; u16 la_mask; - bool enabled; bool monitor_all; bool rx_eom; bool enable_irq_failed; diff --git a/drivers/media/cec/core/cec-pin.c b/drivers/media/cec/core/cec-pin.c index a60b6f03a6a1..2b6459df1e94 100644 --- a/drivers/media/cec/core/cec-pin.c +++ b/drivers/media/cec/core/cec-pin.c @@ -1111,7 +1111,6 @@ static int cec_pin_adap_enable(struct cec_adapter *adap, bool enable) { struct cec_pin *pin = adap->pin; - pin->enabled = enable; if (enable) { atomic_set(&pin->work_pin_num_events, 0); pin->work_pin_events_rd = pin->work_pin_events_wr = 0; |