diff options
author | Phil Carmody <phil.carmody@partner.samsung.com> | 2013-05-31 13:47:00 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-12 22:04:09 -0300 |
commit | 0e761b21b9d6c7a95a8e2b858af85d07f6c62d99 (patch) | |
tree | 6f45a4188978ce5998ee58b2eea05dd798a4746f /drivers/media/platform/exynos4-is/fimc-is.h | |
parent | 5c327e73991485008c941436fb96413d9b010254 (diff) | |
download | linux-0e761b21b9d6c7a95a8e2b858af85d07f6c62d99.tar.bz2 |
[media] exynos4-is: Simplify bitmask usage
Merge the two sets of flags into one array to simplify accessing
arbitrary bits from them.
Signed-off-by: Phil Carmody <phil.carmody@partner.samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/exynos4-is/fimc-is.h')
-rw-r--r-- | drivers/media/platform/exynos4-is/fimc-is.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/platform/exynos4-is/fimc-is.h b/drivers/media/platform/exynos4-is/fimc-is.h index f5275a5b0156..04b456499d49 100644 --- a/drivers/media/platform/exynos4-is/fimc-is.h +++ b/drivers/media/platform/exynos4-is/fimc-is.h @@ -226,8 +226,7 @@ struct chain_config { struct drc_param drc; struct fd_param fd; - unsigned long p_region_index1; - unsigned long p_region_index2; + unsigned long p_region_index[2]; }; /** @@ -304,10 +303,7 @@ static inline void fimc_is_set_param_bit(struct fimc_is *is, int num) { struct chain_config *cfg = &is->config[is->config_index]; - if (num >= 32) - set_bit(num - 32, &cfg->p_region_index2); - else - set_bit(num, &cfg->p_region_index1); + set_bit(num, &cfg->p_region_index[0]); } static inline void fimc_is_set_param_ctrl_cmd(struct fimc_is *is, int cmd) |