From fab2546cd5936ff891cb17d78fe7dff84b029152 Mon Sep 17 00:00:00 2001 From: Kedareswara rao Appana Date: Thu, 28 May 2015 11:40:16 +0530 Subject: [PATCH] mcap: linux: Options -c and -C may be confusing This patch modifies the Access Device Configuration Space option to -a instead of -c. Signed-off-by: Kedareswara rao Appana --- mcap/linux/README | 6 +++--- mcap/linux/mcap.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mcap/linux/README b/mcap/linux/README index cafd93b3..b00a846c 100644 --- a/mcap/linux/README +++ b/mcap/linux/README @@ -34,7 +34,7 @@ Steps to Run -d Dump all the MCAP Registers -v Verbose information of MCAP Device -h/H Help - -c
[type [data]] Access Device Configuration Space + -a
[type [data]] Access Device Configuration Space here type[data] - b for byte data [8 bits] here type[data] - h for half word data [16 bits] here type[data] - w for word data [32 bits] @@ -54,7 +54,7 @@ NOTES be either b/h/w (byte/half-word/word). For example, -> Reading a byte - ./mcap -x 0x8011 -c 0x354 b + ./mcap -x 0x8011 -a 0x354 b -> Writing a word - ./mcap -x 0x8011 -c 0x354 w 0x3 + ./mcap -x 0x8011 -a 0x354 w 0x3 diff --git a/mcap/linux/mcap.c b/mcap/linux/mcap.c index ec919342..649ef0f3 100644 --- a/mcap/linux/mcap.c +++ b/mcap/linux/mcap.c @@ -38,7 +38,7 @@ #include "mcap_lib.h" -static const char options[] = "x:pC:rmfdvHhDc::"; +static const char options[] = "x:pC:rmfdvHhDa::"; static char help_msg[] = "Usage: mcap [options]\n" "\n" @@ -53,7 +53,7 @@ static char help_msg[] = "\t-d\t\tDump all the MCAP Registers\n" "\t-v\t\tVerbose information of MCAP Device\n" "\t-h/H\t\tHelp\n" -"\t-c
[type [data]] Access Device Configuration Space\n" +"\t-a
[type [data]] Access Device Configuration Space\n" "\t\t here type[data] - b for byte data [8 bits]\n" "\t\t here type[data] - h for half word data [16 bits]\n" "\t\t here type[data] - w for word data [32 bits]\n" @@ -70,7 +70,7 @@ int main(int argc, char **argv) while ((i = getopt(argc, argv, options)) != -1) { switch (i) { - case 'c': + case 'a': access_config = 1; break; case 'd':