diff options
Diffstat (limited to 'driver/ppc/aoz1380.c')
-rw-r--r-- | driver/ppc/aoz1380.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/driver/ppc/aoz1380.c b/driver/ppc/aoz1380.c index 726f626caf..27d55cab51 100644 --- a/driver/ppc/aoz1380.c +++ b/driver/ppc/aoz1380.c @@ -1,4 +1,4 @@ -/* Copyright 2019 The Chromium OS Authors. All rights reserved. +/* Copyright 2019 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -14,21 +14,21 @@ #include "atomic.h" #include "common.h" #include "console.h" -#include "aoz1380.h" #include "hooks.h" +#include "ppc/aoz1380_public.h" #include "system.h" #include "tcpm/tcpm.h" #include "usb_pd.h" #include "usb_pd_tcpc.h" #include "usbc_ppc.h" -#define CPRINTF(format, args...) cprintf(CC_USBPD, format, ## args) -#define CPRINTS(format, args...) cprints(CC_USBPD, format, ## args) +#define CPRINTF(format, args...) cprintf(CC_USBPD, format, ##args) +#define CPRINTS(format, args...) cprints(CC_USBPD, format, ##args) static atomic_t irq_pending; /* Bitmask of ports signaling an interrupt. */ -#define AOZ1380_FLAGS_SOURCE_ENABLED BIT(0) -#define AOZ1380_FLAGS_SINK_ENABLED BIT(1) +#define AOZ1380_FLAGS_SOURCE_ENABLED BIT(0) +#define AOZ1380_FLAGS_SINK_ENABLED BIT(1) #define AOZ1380_FLAGS_INT_ON_DISCONNECT BIT(2) static atomic_t flags[CONFIG_USB_PD_PORT_MAX_COUNT]; @@ -157,7 +157,6 @@ const struct ppc_drv aoz1380_drv = { .is_sourcing_vbus = &aoz1380_is_sourcing_vbus, .vbus_sink_enable = &aoz1380_vbus_sink_enable, .vbus_source_enable = &aoz1380_vbus_source_enable, - .set_vbus_source_current_limit = - &aoz1380_set_vbus_source_current_limit, + .set_vbus_source_current_limit = &aoz1380_set_vbus_source_current_limit, .interrupt = &aoz1380_interrupt, }; |