Skip to content

Commit

Permalink
can: sja1000: fix size of OCR_MODE_MASK define
Browse files Browse the repository at this point in the history
[ Upstream commit 26e8f6a ]

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>
  • Loading branch information
Heiko Schocher authored and Greg Kroah-Hartman committed Dec 19, 2022
1 parent 434b523 commit 683837f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/can/platform/sja1000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 683837f

Please sign in to comment.