Skip to content

Commit 2ac40e6

Browse files
Csókás, Bencebroonie
authored andcommitted
spi: atmel-quadspi: Fix register name in verbose logging function
`atmel_qspi_reg_name()` is used for pretty-printing register offsets for verbose logging of register accesses. However, due to a typo (likely a copy-paste error), QSPI_RD's offset prints as "MR", the name of the previous register. Fix this typo. Fixes: c528ecf ("spi: atmel-quadspi: Add verbose debug facilities to monitor register accesses") Signed-off-by: Csókás, Bence <[email protected]> Reviewed-by: Alexander Dahl <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 9e14195 commit 2ac40e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/atmel-quadspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static const char *atmel_qspi_reg_name(u32 offset, char *tmp, size_t sz)
183183
case QSPI_MR:
184184
return "MR";
185185
case QSPI_RD:
186-
return "MR";
186+
return "RD";
187187
case QSPI_TD:
188188
return "TD";
189189
case QSPI_SR:

0 commit comments

Comments
 (0)