summaryrefslogtreecommitdiffstats
path: root/drivers/soundwire
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2019-05-01 11:57:39 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-02 11:16:28 -0400
commit7cc6e315317fe3a077fa474941a3ebf93fc15e78 (patch)
treea5de2c101a696d5a9ff976b8cf26db4085ef61d9 /drivers/soundwire
parentd542bc9e22342d29de9ef0a7f31b8f158711753a (diff)
soundwire: intel: protect macro parameters
Extra parentheses required here Reviewed-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/soundwire')
-rw-r--r--drivers/soundwire/intel.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c
index 56d6c1dda0ff..8c653a563534 100644
--- a/drivers/soundwire/intel.c
+++ b/drivers/soundwire/intel.c
@@ -24,18 +24,18 @@
24#define SDW_SHIM_IPPTR 0x8 24#define SDW_SHIM_IPPTR 0x8
25#define SDW_SHIM_SYNC 0xC 25#define SDW_SHIM_SYNC 0xC
26 26
27#define SDW_SHIM_CTLSCAP(x) (0x010 + 0x60 * x) 27#define SDW_SHIM_CTLSCAP(x) (0x010 + 0x60 * (x))
28#define SDW_SHIM_CTLS0CM(x) (0x012 + 0x60 * x) 28#define SDW_SHIM_CTLS0CM(x) (0x012 + 0x60 * (x))
29#define SDW_SHIM_CTLS1CM(x) (0x014 + 0x60 * x) 29#define SDW_SHIM_CTLS1CM(x) (0x014 + 0x60 * (x))
30#define SDW_SHIM_CTLS2CM(x) (0x016 + 0x60 * x) 30#define SDW_SHIM_CTLS2CM(x) (0x016 + 0x60 * (x))
31#define SDW_SHIM_CTLS3CM(x) (0x018 + 0x60 * x) 31#define SDW_SHIM_CTLS3CM(x) (0x018 + 0x60 * (x))
32#define SDW_SHIM_PCMSCAP(x) (0x020 + 0x60 * x) 32#define SDW_SHIM_PCMSCAP(x) (0x020 + 0x60 * (x))
33 33
34#define SDW_SHIM_PCMSYCHM(x, y) (0x022 + (0x60 * x) + (0x2 * y)) 34#define SDW_SHIM_PCMSYCHM(x, y) (0x022 + (0x60 * (x)) + (0x2 * (y)))
35#define SDW_SHIM_PCMSYCHC(x, y) (0x042 + (0x60 * x) + (0x2 * y)) 35#define SDW_SHIM_PCMSYCHC(x, y) (0x042 + (0x60 * (x)) + (0x2 * (y)))
36#define SDW_SHIM_PDMSCAP(x) (0x062 + 0x60 * x) 36#define SDW_SHIM_PDMSCAP(x) (0x062 + 0x60 * (x))
37#define SDW_SHIM_IOCTL(x) (0x06C + 0x60 * x) 37#define SDW_SHIM_IOCTL(x) (0x06C + 0x60 * (x))
38#define SDW_SHIM_CTMCTL(x) (0x06E + 0x60 * x) 38#define SDW_SHIM_CTMCTL(x) (0x06E + 0x60 * (x))
39 39
40#define SDW_SHIM_WAKEEN 0x190 40#define SDW_SHIM_WAKEEN 0x190
41#define SDW_SHIM_WAKESTS 0x192 41#define SDW_SHIM_WAKESTS 0x192
@@ -82,7 +82,7 @@
82#define SDW_SHIM_WAKESTS_STATUS BIT(0) 82#define SDW_SHIM_WAKESTS_STATUS BIT(0)
83 83
84/* Intel ALH Register definitions */ 84/* Intel ALH Register definitions */
85#define SDW_ALH_STRMZCFG(x) (0x000 + (0x4 * x)) 85#define SDW_ALH_STRMZCFG(x) (0x000 + (0x4 * (x)))
86 86
87#define SDW_ALH_STRMZCFG_DMAT_VAL 0x3 87#define SDW_ALH_STRMZCFG_DMAT_VAL 0x3
88#define SDW_ALH_STRMZCFG_DMAT GENMASK(7, 0) 88#define SDW_ALH_STRMZCFG_DMAT GENMASK(7, 0)