platform: fimc: fix bitwise negation of a boolean expression
authorAnan Jaser <ananjaser@gmail.com>
Tue, 22 Sep 2020 20:28:13 +0000 (00:28 +0400)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:14:06 +0000 (21:14 +0000)
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

drivers/media/platform/exynos/fimc-is2/sensor/flite/fimc-is-hw-flite-v4_20_0.h

index 67f02688825f1cb94f1c755b4639b44af7d56068..a037849f5e00c379c86b2fe02dacad52466984c8 100644 (file)
 
 /* 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)