diff options
| author | Moritz Fischer <[email protected]> | 2016-11-03 08:53:52 -0600 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2016-12-02 21:04:48 -0700 |
| commit | a2558e8729831e0bcef634ea2440e60425ef0ff6 (patch) | |
| tree | a653a4011ade2643c20658abaa19ec933605bf73 /drivers | |
| parent | ae6acf9fe2c83370159724855b7fdbb350ae99b9 (diff) | |
cmd: crosec: Move cros_ec_decode_region helper to cmd/cros_ec.c
The cros_ec_decode_region() function is only used in combination
with the crosec cmds. Move the function to the correct place.
Signed-off-by: Moritz Fischer <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: [email protected]
Acked-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/misc/cros_ec.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c index 807373053c4..759bb46c57b 100644 --- a/drivers/misc/cros_ec.c +++ b/drivers/misc/cros_ec.c @@ -1024,22 +1024,6 @@ int cros_ec_register(struct udevice *dev) return 0; } -int cros_ec_decode_region(int argc, char * const argv[]) -{ - if (argc > 0) { - if (0 == strcmp(*argv, "rw")) - return EC_FLASH_REGION_RW; - else if (0 == strcmp(*argv, "ro")) - return EC_FLASH_REGION_RO; - - debug("%s: Invalid region '%s'\n", __func__, *argv); - } else { - debug("%s: Missing region parameter\n", __func__); - } - - return -1; -} - int cros_ec_decode_ec_flash(const void *blob, int node, struct fdt_cros_ec *config) { |
