summaryrefslogtreecommitdiff
path: root/driver/charger/bq24192.c
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2015-07-27 12:39:35 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-29 21:18:25 +0000
commit1b45f6ed717c8c1a62cbe0698bc2217b69ce1483 (patch)
treed986841aada034e9514c53a4bf849e135e4e652a /driver/charger/bq24192.c
parent511766b6388099ed6894f7209430de145397afc4 (diff)
downloadchrome-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/charger/bq24192.c')
-rw-r--r--driver/charger/bq24192.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/driver/charger/bq24192.c b/driver/charger/bq24192.c
index 27057923c8..2bc6697d6e 100644
--- a/driver/charger/bq24192.c
+++ b/driver/charger/bq24192.c
@@ -247,7 +247,7 @@ DECLARE_HOOK(HOOK_INIT, bq24192_init, HOOK_PRIO_LAST);
/*****************************************************************************/
/* Console commands */
-
+#ifdef CONFIG_CMD_CHARGER
static int command_bq24192(int argc, char **argv)
{
int i;
@@ -272,3 +272,4 @@ static int command_bq24192(int argc, char **argv)
}
DECLARE_CONSOLE_COMMAND(bq24192, command_bq24192,
NULL, NULL, NULL);
+#endif