fimc-is: Convert bool to unsigned int to fix bool-operation
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 22 Mar 2018 06:36:31 +0000 (15:36 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:57:28 +0000 (14:57 +0900)
Convert bool to unsigned in to fix bool-operation warnings with gcc7.

Change-Id: I04147f628198204e2b1ecc3b3f04a63a61f62c7b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/media/platform/exynos/fimc-is/fimc-is-device-flite.c

index 7c28a85..7559d7f 100644 (file)
 
 static void flite_hw_enable_bns(void __iomem *base_reg, bool enable)
 {
-       u32 cfg = 0;
+       const unsigned int __en = enable ? 1U : 0U;
+       u32 cfg;
 
-       /* enable */
        cfg = readl(base_reg + FLITE_REG_BINNINGON);
-       cfg |= FLITE_REG_BINNINGON_CLKGATE_ON(enable);
-       cfg |= FLITE_REG_BINNINGON_EN(enable);
+       cfg |= FLITE_REG_BINNINGON_CLKGATE_ON((__en));
+       cfg |= FLITE_REG_BINNINGON_EN((__en));
        writel(cfg, base_reg + FLITE_REG_BINNINGON);
 }