diff options
author | Stefan Wahren <stefan.wahren@i2se.com> | 2017-05-29 13:57:11 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-30 13:57:27 -0400 |
commit | 661ec067b035029ee1c8d282636889a5fd2ddfb3 (patch) | |
tree | ba8bd9d43ec34d064d13e8009f34afa06bb82470 /drivers/net/ethernet/qualcomm/qca_7k.h | |
parent | e75977b4b88c3b226c7d3964a048fa8c75659b02 (diff) | |
download | linux-stable-661ec067b035029ee1c8d282636889a5fd2ddfb3.tar.gz linux-stable-661ec067b035029ee1c8d282636889a5fd2ddfb3.tar.bz2 linux-stable-661ec067b035029ee1c8d282636889a5fd2ddfb3.zip |
net: qca_7k: Use BIT macro
Use the BIT macro for the CONFIG and INT register values.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm/qca_7k.h')
-rw-r--r-- | drivers/net/ethernet/qualcomm/qca_7k.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/ethernet/qualcomm/qca_7k.h b/drivers/net/ethernet/qualcomm/qca_7k.h index 1cad851ee507..4047f0aeb47a 100644 --- a/drivers/net/ethernet/qualcomm/qca_7k.h +++ b/drivers/net/ethernet/qualcomm/qca_7k.h @@ -54,15 +54,15 @@ #define SPI_REG_ACTION_CTRL 0x1B00 /* SPI_CONFIG register definition; */ -#define QCASPI_SLAVE_RESET_BIT (1 << 6) +#define QCASPI_SLAVE_RESET_BIT BIT(6) /* INTR_CAUSE/ENABLE register definition. */ -#define SPI_INT_WRBUF_BELOW_WM (1 << 10) -#define SPI_INT_CPU_ON (1 << 6) -#define SPI_INT_ADDR_ERR (1 << 3) -#define SPI_INT_WRBUF_ERR (1 << 2) -#define SPI_INT_RDBUF_ERR (1 << 1) -#define SPI_INT_PKT_AVLBL (1 << 0) +#define SPI_INT_WRBUF_BELOW_WM BIT(10) +#define SPI_INT_CPU_ON BIT(6) +#define SPI_INT_ADDR_ERR BIT(3) +#define SPI_INT_WRBUF_ERR BIT(2) +#define SPI_INT_RDBUF_ERR BIT(1) +#define SPI_INT_PKT_AVLBL BIT(0) void qcaspi_spi_error(struct qcaspi *qca); int qcaspi_read_register(struct qcaspi *qca, u16 reg, u16 *result); |