Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

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>

authored by

Heiko Schocher and committed by
Marc Kleine-Budde
26e8f6a7 8fa452cf

+1 -1
+1 -1
include/linux/can/platform/sja1000.h
··· 14 14 #define OCR_MODE_TEST 0x01 15 15 #define OCR_MODE_NORMAL 0x02 16 16 #define OCR_MODE_CLOCK 0x03 17 - #define OCR_MODE_MASK 0x07 17 + #define OCR_MODE_MASK 0x03 18 18 #define OCR_TX0_INVERT 0x04 19 19 #define OCR_TX0_PULLDOWN 0x08 20 20 #define OCR_TX0_PULLUP 0x10