diff options
author | Heiko Schocher <hs@denx.de> | 2022-11-23 08:16:36 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-18 09:26:05 +0100 |
commit | c6b33440bf2fcadf6659ae301a43e62a2f46bcd3 (patch) | |
tree | 5470a841b28b1aa1621f07885614759683ac1189 /include/linux | |
parent | cf1c225f1927891ae388562b78ced7840c3723b9 (diff) | |
download | linux-stable-c6b33440bf2fcadf6659ae301a43e62a2f46bcd3.tar.gz linux-stable-c6b33440bf2fcadf6659ae301a43e62a2f46bcd3.tar.bz2 linux-stable-c6b33440bf2fcadf6659ae301a43e62a2f46bcd3.zip |
can: sja1000: fix size of OCR_MODE_MASK define
[ Upstream commit 26e8f6a75248247982458e8237b98c9fb2ffcf9d ]
bitfield mode in ocr register has only 2 bits not 3, so correct
the OCR_MODE_MASK define.
Signed-off-by: Heiko Schocher <hs@denx.de>
Link: https://lore.kernel.org/all/20221123071636.2407823-1-hs@denx.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/can/platform/sja1000.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/can/platform/sja1000.h b/include/linux/can/platform/sja1000.h index 5755ae5a4712..6a869682c120 100644 --- a/include/linux/can/platform/sja1000.h +++ b/include/linux/can/platform/sja1000.h @@ -14,7 +14,7 @@ #define OCR_MODE_TEST 0x01 #define OCR_MODE_NORMAL 0x02 #define OCR_MODE_CLOCK 0x03 -#define OCR_MODE_MASK 0x07 +#define OCR_MODE_MASK 0x03 #define OCR_TX0_INVERT 0x04 #define OCR_TX0_PULLDOWN 0x08 #define OCR_TX0_PULLUP 0x10 |