diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2015-07-27 12:39:35 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-29 21:18:25 +0000 |
commit | 1b45f6ed717c8c1a62cbe0698bc2217b69ce1483 (patch) | |
tree | d986841aada034e9514c53a4bf849e135e4e652a /driver/ina2xx.c | |
parent | 511766b6388099ed6894f7209430de145397afc4 (diff) | |
download | chrome-ec-1b45f6ed717c8c1a62cbe0698bc2217b69ce1483.tar.gz |
Driver: Add macros to conditionally compile the console commands
Added macros to conditionally compile the console commands to save the
memory. These macros can be enabled/disabled in the board specific files.
BUG=none
TEST=make buildall -j
BRANCH=none
Change-Id: I108a072c333762cd24ea973612202c9cc4d40914
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/288950
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'driver/ina2xx.c')
-rw-r--r-- | driver/ina2xx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/ina2xx.c b/driver/ina2xx.c index 47b716dea8..c89e02a53b 100644 --- a/driver/ina2xx.c +++ b/driver/ina2xx.c @@ -76,6 +76,7 @@ int ina2xx_get_power(uint8_t idx) return INA2XX_POW_MW((int)pow); } +#ifdef CONFIG_CMD_INA static void ina2xx_dump(uint8_t idx) { uint16_t cfg = ina2xx_read(idx, INA2XX_REG_CONFIG); @@ -145,3 +146,4 @@ DECLARE_CONSOLE_COMMAND(ina, command_ina, "<index> [config|calib|mask|alert <val>]", "INA2XX power/current sensing", NULL); +#endif |