Skip to content

Commit

Permalink
staging: pi433: fix wrong debug message on rf69_write_fifo()
Browse files Browse the repository at this point in the history
The debug message should describe error when user calls rf69_write_fifo()
not rf69_write_fifo().

Signed-off-by: Sidong Yang <realwakka@gmail.com>
Link: https://lore.kernel.org/r/20220730012724.1138-1-realwakka@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
realwakka authored and gregkh committed Aug 16, 2022
1 parent 692f900 commit aef1bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/pi433/rf69.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ int rf69_write_fifo(struct spi_device *spi, u8 *buffer, unsigned int size)

if (size > FIFO_SIZE) {
dev_dbg(&spi->dev,
"read fifo: passed in buffer bigger then internal buffer\n");
"write fifo: passed in buffer bigger then internal buffer\n");
return -EMSGSIZE;
}

Expand Down

0 comments on commit aef1bf6

Please sign in to comment.