git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[pandora-kernel.git]
/
Documentation
/
spi
/
spidev_test.c
diff --git
a/Documentation/spi/spidev_test.c
b/Documentation/spi/spidev_test.c
index
218e862
..
cf0e3ce
100644
(file)
--- a/
Documentation/spi/spidev_test.c
+++ b/
Documentation/spi/spidev_test.c
@@
-29,7
+29,7
@@
static void pabort(const char *s)
abort();
}
abort();
}
-static char *device = "/dev/spidev1.1";
+static c
onst c
har *device = "/dev/spidev1.1";
static uint8_t mode;
static uint8_t bits = 8;
static uint32_t speed = 500000;
static uint8_t mode;
static uint8_t bits = 8;
static uint32_t speed = 500000;
@@
-69,7
+69,7
@@
static void transfer(int fd)
puts("");
}
puts("");
}
-void print_usage(char *prog)
+void print_usage(c
onst c
har *prog)
{
printf("Usage: %s [-DsbdlHOLC3]\n", prog);
puts(" -D --device device to use (default /dev/spidev1.1)\n"
{
printf("Usage: %s [-DsbdlHOLC3]\n", prog);
puts(" -D --device device to use (default /dev/spidev1.1)\n"
@@
-88,7
+88,7
@@
void print_usage(char *prog)
void parse_opts(int argc, char *argv[])
{
while (1) {
void parse_opts(int argc, char *argv[])
{
while (1) {
- static struct option lopts[] = {
+ static
const
struct option lopts[] = {
{ "device", 1, 0, 'D' },
{ "speed", 1, 0, 's' },
{ "delay", 1, 0, 'd' },
{ "device", 1, 0, 'D' },
{ "speed", 1, 0, 's' },
{ "delay", 1, 0, 'd' },