projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e61bb11
)
spi: mxic: Ensure width is respected in spi-mem operations
author
Miquel Raynal
<miquel.raynal@bootlin.com>
Thu, 19 Sep 2019 20:25:02 +0000
(22:25 +0200)
committer
Mark Brown
<broonie@kernel.org>
Tue, 1 Oct 2019 11:33:58 +0000
(12:33 +0100)
Make use of a core helper to ensure the desired width is respected
when calling spi-mem operators.
Suggested-by: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link:
https://lore.kernel.org/r/20190919202504.9619-2-miquel.raynal@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mxic.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-mxic.c
b/drivers/spi/spi-mxic.c
index
f48563c
..
409bfa1
100644
(file)
--- a/
drivers/spi/spi-mxic.c
+++ b/
drivers/spi/spi-mxic.c
@@
-346,7
+346,7
@@
static bool mxic_spi_mem_supports_op(struct spi_mem *mem,
if (op->addr.nbytes > 7)
return false;
- return
true
;
+ return
spi_mem_default_supports_op(mem, op)
;
}
static int mxic_spi_mem_exec_op(struct spi_mem *mem,