From e7972af0f5fa29a96af96e8ac5affa4a3541afa0 Mon Sep 17 00:00:00 2001 From: Anan Jaser Date: Wed, 23 Sep 2020 00:28:13 +0400 Subject: [PATCH] platform: fimc: fix bitwise negation of a boolean expression drivers/media/platform/exynos/fimc-is2/sensor/flite/fimc-is-hw-flite-v4_20_0.c:28:9: error: bitwise negation of a boolean expression; did you m ean logical negation? [-Werror,-Wbool-operation] cfg |= FLITE_REG_BINNINGON_CLKGATE_ON(enable); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/platform/exynos/fimc-is2/sensor/flite/fimc-is-hw-flite-v4_20_0.h:112:45: note: expanded from macro 'FLITE_REG_BINNINGON_CLKGATE_O N' Change-Id: I3974e42c46d235cae0ad4cfdd5d4cc0af7e7fafe --- .../exynos/fimc-is2/sensor/flite/fimc-is-hw-flite-v4_20_0.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/flite/fimc-is-hw-flite-v4_20_0.h b/drivers/media/platform/exynos/fimc-is2/sensor/flite/fimc-is-hw-flite-v4_20_0.h index 67f02688825f..a037849f5e00 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/flite/fimc-is-hw-flite-v4_20_0.h +++ b/drivers/media/platform/exynos/fimc-is2/sensor/flite/fimc-is-hw-flite-v4_20_0.h @@ -109,7 +109,7 @@ /* BNS */ #define FLITE_REG_BINNINGON (0x120) -#define FLITE_REG_BINNINGON_CLKGATE_ON(x) (~(x) << 1) +#define FLITE_REG_BINNINGON_CLKGATE_ON(x) (!(x) << 1) #define FLITE_REG_BINNINGON_EN(x) ((x) << 0) #define FLITE_REG_BINNINGCTRL (0x124) -- 2.20.1