diff options
author | Silvio Fricke <silvio.fricke@gmail.com> | 2014-07-10 16:19:54 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-14 08:04:04 +0200 |
commit | 100ca65b1e6b5a7ed06a59a096c2777dedfa0dc8 (patch) | |
tree | 6b292425ebc8bd8d1025e2c7f9298cba34af543b /commands | |
parent | bfea711b14630a9c211d29bdabc0a13ceafa26c5 (diff) | |
download | barebox-100ca65b1e6b5a7ed06a59a096c2777dedfa0dc8.tar.gz barebox-100ca65b1e6b5a7ed06a59a096c2777dedfa0dc8.tar.xz |
commands: i2c: verbose option doesn't need argument
Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/i2c.c b/commands/i2c.c index 2811f6abeb..7a39e6e237 100644 --- a/commands/i2c.c +++ b/commands/i2c.c @@ -75,7 +75,7 @@ static int do_i2c_write(int argc, char *argv[]) int addr = -1, reg = -1, count = -1, verbose = 0, ret, opt, i, bus = 0, wide = 0; u8 *buf; - while ((opt = getopt(argc, argv, "a:b:r:v:w")) > 0) { + while ((opt = getopt(argc, argv, "a:b:r:vw")) > 0) { switch (opt) { case 'a': addr = simple_strtol(optarg, NULL, 0); @@ -155,7 +155,7 @@ static int do_i2c_read(int argc, char *argv[]) u8 *buf; int count = -1, addr = -1, reg = -1, verbose = 0, ret, opt, bus = 0, wide = 0; - while ((opt = getopt(argc, argv, "a:b:c:r:v:w")) > 0) { + while ((opt = getopt(argc, argv, "a:b:c:r:vw")) > 0) { switch (opt) { case 'a': addr = simple_strtol(optarg, NULL, 0); |