projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2e78c3
)
spi: spidev_fdx: Add support for Dual/Quad SPI Transfers
author
Geert Uytterhoeven
<geert+renesas@linux-m68k.org>
Tue, 25 Feb 2014 10:40:19 +0000
(11:40 +0100)
committer
Mark Brown
<broonie@linaro.org>
Thu, 27 Feb 2014 04:51:29 +0000
(13:51 +0900)
Use SPI_IOC_RD_MODE32 to print the full SPI mode, now in hex.
Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/spi/spidev_fdx.c
patch
|
blob
|
history
diff --git
a/Documentation/spi/spidev_fdx.c
b/Documentation/spi/spidev_fdx.c
index
36ec077
..
0ea3e51
100644
(file)
--- a/
Documentation/spi/spidev_fdx.c
+++ b/
Documentation/spi/spidev_fdx.c
@@
-78,10
+78,10
@@
static void do_msg(int fd, int len)
static void dumpstat(const char *name, int fd)
{
- __u8
mode,
lsb, bits;
- __u32 speed;
+ __u8 lsb, bits;
+ __u32
mode,
speed;
- if (ioctl(fd, SPI_IOC_RD_MODE, &mode) < 0) {
+ if (ioctl(fd, SPI_IOC_RD_MODE
32
, &mode) < 0) {
perror("SPI rd_mode");
return;
}
@@
-98,7
+98,7
@@
static void dumpstat(const char *name, int fd)
return;
}
- printf("%s: spi mode
%d
, %d bits %sper word, %d Hz max\n",
+ printf("%s: spi mode
0x%x
, %d bits %sper word, %d Hz max\n",
name, mode, bits, lsb ? "(lsb first) " : "", speed);
}