media: s5p-jpeg: fix number of components macro
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Tue, 8 Aug 2017 11:27:07 +0000 (07:27 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 12:02:04 +0000 (08:02 -0400)
commit6c83c1d8e7058a22840b22f54f3b1acad2c2207c
tree582d9073f66784c6b58ea47a9340601600782700
parent787d8620912a42b32a72ef241b48466e63d3d266
media: s5p-jpeg: fix number of components macro

The value to be processed must be first masked and then shifted,
not the other way round.

Fixes: 6c96dbbc2aa9f5b4a ("[media] s5p-jpeg: add support for 5433")

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-jpeg/jpeg-regs.h