summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/s5p-jpeg/jpeg-core.h
diff options
context:
space:
mode:
authorJacek Anaszewski2014-04-10 09:32:11 +0200
committerMauro Carvalho Chehab2014-05-14 01:07:44 +0200
commitb245168ccbd22b308ae320df71dd1a11bd557e3e (patch)
treed43af62fc7f43368b91bc2a78a0e8ebb2f7012c3 /drivers/media/platform/s5p-jpeg/jpeg-core.h
parent[media] s5p-fimc: Reuse calculated sizes (diff)
downloadkernel-qcow2-linux-b245168ccbd22b308ae320df71dd1a11bd557e3e.tar.gz
kernel-qcow2-linux-b245168ccbd22b308ae320df71dd1a11bd557e3e.tar.xz
kernel-qcow2-linux-b245168ccbd22b308ae320df71dd1a11bd557e3e.zip
[media] s5p-jpeg: Add fmt_ver_flag field to the s5p_jpeg_variant structure
Simplify the code by adding fmt_ver_flag field to the s5p_jpeg_variant structure which allows to avoid "if" statement in the s5p_jpeg_find_format function. Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform/s5p-jpeg/jpeg-core.h')
-rw-r--r--drivers/media/platform/s5p-jpeg/jpeg-core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.h b/drivers/media/platform/s5p-jpeg/jpeg-core.h
index f482dbf55d5f..c222436d4661 100644
--- a/drivers/media/platform/s5p-jpeg/jpeg-core.h
+++ b/drivers/media/platform/s5p-jpeg/jpeg-core.h
@@ -118,6 +118,7 @@ struct s5p_jpeg {
struct s5p_jpeg_variant {
unsigned int version;
+ unsigned int fmt_ver_flag;
irqreturn_t (*jpeg_irq)(int irq, void *priv);
};