[media] exynos4-is: Improve the ISP chain parameter count calculation
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 10 Apr 2013 09:23:05 +0000 (06:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 14 Apr 2013 18:50:31 +0000 (15:50 -0300)
commita6f5635e63ffa02c30a22ea4af21f3daa1e98cdf
tree48581b597f3ff45132d968db30d91cb0e1da5fa9
parent4c8f0629f53bb198ed00c2c54cf80cc2be95acab
[media] exynos4-is: Improve the ISP chain parameter count calculation

Instead of incrementing p_region_num field each time we set a bit
in the parameter mask calculate the number of bits set only when
this information is needed.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/exynos4-is/fimc-is-param.c
drivers/media/platform/exynos4-is/fimc-is-param.h
drivers/media/platform/exynos4-is/fimc-is-regs.c
drivers/media/platform/exynos4-is/fimc-is.c
drivers/media/platform/exynos4-is/fimc-is.h
drivers/media/platform/exynos4-is/fimc-isp.c