summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/s5p-jpeg/jpeg-core.h
diff options
context:
space:
mode:
authorJacek Anaszewski <j.anaszewski@samsung.com>2014-04-10 04:32:11 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-13 20:07:44 -0300
commitb245168ccbd22b308ae320df71dd1a11bd557e3e (patch)
treed43af62fc7f43368b91bc2a78a0e8ebb2f7012c3 /drivers/media/platform/s5p-jpeg/jpeg-core.h
parentb9684a60328255aadcfff0893b7eaec0e8a308d2 (diff)
downloadlinux-b245168ccbd22b308ae320df71dd1a11bd557e3e.tar.bz2
[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);
};