]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
power: avs: cpr: add missing () around macro parameters
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 4 Jan 2017 10:16:46 +0000 (11:16 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 7 Mar 2017 11:40:18 +0000 (12:40 +0100)
drivers/power/avs/qcom-cpr.c

index 3daa2153d742db782d024be2f215d51b2e416718..ab24b40a94f1e7db3c2f7a656856b67d5ceae625 100644 (file)
@@ -40,7 +40,7 @@
 #define RBCPR_VER_2                    0x02
 
 /* RBCPR Gate Count and Target Registers */
-#define REG_RBCPR_GCNT_TARGET(n)       (0x60 + 4 * n)
+#define REG_RBCPR_GCNT_TARGET(n)       (0x60 + 4 * (n))
 
 #define RBCPR_GCNT_TARGET_TARGET_SHIFT 0
 #define RBCPR_GCNT_TARGET_TARGET_MASK  GENMASK(11, 0)
 #define RBCPR_RESULT0_STEP_UP_SHIFT    1
 
 /* RBCPR Interrupt Control Register */
-#define REG_RBIF_IRQ_EN(n)             (0x100 + 4 * n)
+#define REG_RBIF_IRQ_EN(n)             (0x100 + 4 * (n))
 #define REG_RBIF_IRQ_CLEAR             0x110
 #define REG_RBIF_IRQ_STATUS            0x114