Skip to contentSkip to conversation

can: sja1000: fix size of OCR_MODE_MASK define

PATCH Applied Heiko Schocher 2 participants 2 messages Nov 23, 2022 – Nov 24, 2022 CAN network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 can: sja1000: fix size of OCR_MODE_MASK define

bitfield mode in ocr register has only 2 bits not 3, so correct the OCR_MODE_MASK define.

---

 include/linux/can/platform/sja1000.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/can/platform/sja1000.h +1 -1
index 5755ae5a4712..6a869682c120 100644
@@ -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
Signature · 1 line
2.37.3
maintainer Applied
#1 lore raw
Quoted 4 lines · Heiko Schocher

bitfield mode in ocr register has only 2 bits not 3, so correct the OCR_MODE_MASK define.

Applied to linux-can.

Thanks,
Marc

Signature · 4 lines
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |