[2/2] cros_ec: Deprecate "gec" in favor of "cros_ec"
This patch does the following:
- sed -i 's/gec/cros_ec/g' *.c *.h
- sed -i 's/GEC/CROS_EC/g' *.c *.h
The renaming should pretty much all be trivial. There were two minor
exceptions:
- Renamed GECLOCK to CROS_EC_LOCK (instead of CROS_ECLOCK)
- Split a >80 cols line in cros_ec_lpc.c
BUG=none
BRANCH=none
TEST=built and ran "flashrom -p host --flash-name" and 'flashrom -p ec
--flash-name" on peppy (LPC), snow, and nyan_blaze. Chips
identified properly.
Change-Id: I28bfa8be8fd9bb1671dbbffb8c9c8ef185be0521
Reviewed-on: https://chromium-review.googlesource.com/211955
Commit-Queue: David Hendricks <dhendrix@chromium.org>
Tested-by: David Hendricks <dhendrix@chromium.org>
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
diff --git a/programmer.h b/programmer.h
index 61d5b32..98df465 100644
--- a/programmer.h
+++ b/programmer.h
@@ -695,20 +695,20 @@
/* wpce775x.c */
int wpce775x_probe_spi_flash(const char *name);
-/* gec.c */
-int gec_probe_i2c(const char *name);
+/* cros_ec.c */
+int cros_ec_probe_i2c(const char *name);
/**
* Probe the Google Chrome OS EC device
*
* @return 0 if found correct, non-zero if not found or error
*/
-int gec_probe_dev(void);
+int cros_ec_probe_dev(void);
-int gec_probe_lpc(const char *name);
-int gec_need_2nd_pass(void);
-int gec_finish(void);
-int gec_prepare(uint8_t *image, int size);
+int cros_ec_probe_lpc(const char *name);
+int cros_ec_need_2nd_pass(void);
+int cros_ec_finish(void);
+int cros_ec_prepare(uint8_t *image, int size);
void sp_flush_incoming(void);
fdtype sp_openserport(char *dev, unsigned int baud);