440e666c50da0393edbe1bae0f8ed87f1f001dc9
[openwrt/staging/blogic.git] /
1 From f42c5003bb6d755516058e1be86945858f54cca7 Mon Sep 17 00:00:00 2001
2 From: John Cox <jc@kynesim.co.uk>
3 Date: Wed, 22 Sep 2021 18:57:19 +0100
4 Subject: [PATCH] media: rpivid: Remove unused ctx state variable and
5 defines
6
7 Remove unused ctx state tracking variable and associated defines.
8 Their presence implies they might be used, but they aren't.
9
10 Signed-off-by: John Cox <jc@kynesim.co.uk>
11 ---
12 drivers/staging/media/rpivid/rpivid.h | 7 -------
13 1 file changed, 7 deletions(-)
14
15 --- a/drivers/staging/media/rpivid/rpivid.h
16 +++ b/drivers/staging/media/rpivid/rpivid.h
17 @@ -82,12 +82,6 @@ typedef void (*rpivid_irq_callback)(stru
18 struct rpivid_q_aux;
19 #define RPIVID_AUX_ENT_COUNT VB2_MAX_FRAME
20
21 -
22 -#define RPIVID_CTX_STATE_STOPPED 0 /* stream_off */
23 -#define RPIVID_CTX_STATE_STREAM_ON 1 /* decoding */
24 -#define RPIVID_CTX_STATE_STREAM_STOP 2 /* in stream_off */
25 -#define RPIVID_CTX_STATE_STREAM_ERR 3 /* stream_on but broken */
26 -
27 struct rpivid_ctx {
28 struct v4l2_fh fh;
29 struct rpivid_dev *dev;
30 @@ -96,7 +90,6 @@ struct rpivid_ctx {
31 struct v4l2_pix_format_mplane dst_fmt;
32 int dst_fmt_set;
33
34 - atomic_t stream_state;
35 struct clk_request *clk_req;
36 int src_stream_on;
37 int dst_stream_on;