projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8fa452c
)
can: sja1000: fix size of OCR_MODE_MASK define
author
Heiko Schocher
<hs@denx.de>
Wed, 23 Nov 2022 07:16:36 +0000
(08:16 +0100)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Thu, 24 Nov 2022 15:01:04 +0000
(16:01 +0100)
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>
include/linux/can/platform/sja1000.h
patch
|
blob
|
history
diff --git
a/include/linux/can/platform/sja1000.h
b/include/linux/can/platform/sja1000.h
index
5755ae5
..
6a86968
100644
(file)
--- 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_TEST 0x01
#define OCR_MODE_NORMAL 0x02
#define OCR_MODE_CLOCK 0x03
-#define OCR_MODE_MASK 0x0
7
+#define OCR_MODE_MASK 0x0
3
#define OCR_TX0_INVERT 0x04
#define OCR_TX0_PULLDOWN 0x08
#define OCR_TX0_PULLUP 0x10
#define OCR_TX0_INVERT 0x04
#define OCR_TX0_PULLDOWN 0x08
#define OCR_TX0_PULLUP 0x10