spi: spi-mem: Fix typo (of -> or)
PATCH 1/1 spi: spi-mem: Fix typo (of -> or)
In this instance, "or" makes more sense than "of", so I guess that "or" was intended and "of" was a typo.
--- include/linux/spi/spi-mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/spi/spi-mem.h +1 -1
@@ -225,7 +225,7 @@ static inline void *spi_mem_get_drvdata(struct spi_mem *mem)/** * struct spi_controller_mem_ops - SPI memory operations * @adjust_op_size: shrink the data xfer of an operation to match controller's -* limitations (can be alignment of max RX/TX size +* limitations (can be alignment or max RX/TX size * limitations) * @supports_op: check if an operation is supported by the controller * @exec_op: execute a SPI memory operation
--
2.35.1
Hi Jonathan,
Quoted 2 lines · Jonathan Neuschäfer
In this instance, "or" makes more sense than "of", so I guess that "or" was intended and "of" was a typo.
Using "I guess" is generally discouraged in commit messages. Please read up the documentation
on submitting patches:
Quoted 1 line
Describe your changes in imperative mood, e.g. “make xyzzy do frotz” instead of “[This patch] makes xyzzy do frotz” or “[I] changed xyzzy to do frotz”, as if you are giving orders to the codebase to change its behaviour.
Quoted 22 lines
Signed-off-by Jonathan Neuschäfer <[email protected]>--- include/linux/spi/spi-mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/spi/spi-mem.h +1
-2@@ -225,7 +225,7 @@ static inline void *spi_mem_get_drvdata(struct spi_mem *mem)/** * struct spi_controller_mem_ops - SPI memory operations * @adjust_op_size: shrink the data xfer of an operation to match controller's -* limitations (can be alignment of max RX/TX size +* limitations (can be alignment or max RX/TX size * limitations) * @supports_op: check if an operation is supported by the controller * @exec_op: execute a SPI memory operation -- 2.35.1
Signature · 2 lines
Regards, Dhruva Gole <[email protected]>
Quoted 8 lines · Dhruva
Hi Jonathan,
Quoted 2 lines · Jonathan Neuschäfer
In this instance, "or" makes more sense than "of", so I guess that "or" was intended and "of" was a typo.
Using "I guess" is generally discouraged in commit messages. Please read up the documentation
It is truthful though: I did not write the original comment, and my change is based on my interpretation of the comment.
Quoted 5 lines
on submitting patches:
Quoted 1 line
Describe your changes in imperative mood, e.g. “make xyzzy do frotz”
instead of “[This patch] makes xyzzy do frotz” or “[I] changed xyzzy to do frotz”, as if you are giving orders to the codebase to change its behaviour.
The imperative-mood description is already in the commit title (or subject line). I am not making a functional change to the code, so "fix a typo" is really all that is to be said in imperative mood, the rest is an explanation of why I think this makes sense.
Quoted 2 lines
Best regards,
Jonathan