summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-03-19 16:34:31 -0600
committerCommit Bot <commit-bot@chromium.org>2021-03-20 03:25:45 +0000
commit1814e9171c07bb719140b69e3c18577a128d932a (patch)
tree406f1412df17bc1b8c70f4f6a689f69fdb47bc15
parent674108fb834d5ba2e1fb2ebb78aa293eec3aee44 (diff)
downloadchrome-ec-1814e9171c07bb719140b69e3c18577a128d932a.tar.gz
driver: ln9310: use CC_I2C for logging
CC_CHIPSET is only available if the chipset task is enabled, but the ln9310 has no other dependencies on power sequencing. Bringup may require this driver to be enabled before power sequencing. It makes more sense to log to the I2C channel, since we communicate with this chip on I2C. BUG=b:183054226 BRANCH=none TEST=buildall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I3b040c88613be6075a834c6758b79965ab88fd76 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2776219 Reviewed-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--driver/ln9310.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/ln9310.c b/driver/ln9310.c
index b63f992416..73d9c7424f 100644
--- a/driver/ln9310.c
+++ b/driver/ln9310.c
@@ -13,9 +13,9 @@
#include "util.h"
#include "timer.h"
-#define CPUTS(outstr) cputs(CC_CHIPSET, outstr)
-#define CPRINTF(format, args...) cprintf(CC_CHIPSET, format, ## args)
-#define CPRINTS(format, args...) cprints(CC_CHIPSET, format, ## args)
+#define CPUTS(outstr) cputs(CC_I2C, outstr)
+#define CPRINTF(format, args...) cprintf(CC_I2C, format, ## args)
+#define CPRINTS(format, args...) cprints(CC_I2C, format, ## args)
static int power_good;