summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/marvell-ccic/mcam-core.h
diff options
context:
space:
mode:
authorLibin Yang2012-12-15 09:57:50 +0100
committerMauro Carvalho Chehab2012-12-27 21:04:22 +0100
commitf698957aeaf3a711c2aa630a845b43426c02f339 (patch)
tree0dbcf943fc569407332daf53c82d05854761daaa /drivers/media/platform/marvell-ccic/mcam-core.h
parent[media] media/rc: fix oops on unloading module rc-core (diff)
downloadkernel-qcow2-linux-f698957aeaf3a711c2aa630a845b43426c02f339.tar.gz
kernel-qcow2-linux-f698957aeaf3a711c2aa630a845b43426c02f339.tar.xz
kernel-qcow2-linux-f698957aeaf3a711c2aa630a845b43426c02f339.zip
[media] marvell-ccic: use internal variable replace global frame stats variable
This patch replaces the global frame stats variables by using internal variables in mcam_camera structure. Signed-off-by: Albert Wang <twang13@marvell.com> Signed-off-by: Libin Yang <lbyang@marvell.com> Acked-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/marvell-ccic/mcam-core.h')
-rw-r--r--drivers/media/platform/marvell-ccic/mcam-core.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/platform/marvell-ccic/mcam-core.h b/drivers/media/platform/marvell-ccic/mcam-core.h
index bd6acba9fb37..5e802c6b398e 100644
--- a/drivers/media/platform/marvell-ccic/mcam-core.h
+++ b/drivers/media/platform/marvell-ccic/mcam-core.h
@@ -73,6 +73,14 @@ static inline int mcam_buffer_mode_supported(enum mcam_buffer_mode mode)
}
}
+/*
+ * Basic frame states
+ */
+struct mcam_frame_state {
+ unsigned int frames;
+ unsigned int singles;
+ unsigned int delivered;
+};
/*
* A description of one of our devices.
@@ -108,6 +116,7 @@ struct mcam_camera {
unsigned long flags; /* Buffer status, mainly (dev_lock) */
int users; /* How many open FDs */
+ struct mcam_frame_state frame_state; /* Frame state counter */
/*
* Subsystem structures.
*/