diff options
Diffstat (limited to 'zephyr/shim/src/bc12_pi3usb9201.c')
-rw-r--r-- | zephyr/shim/src/bc12_pi3usb9201.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/zephyr/shim/src/bc12_pi3usb9201.c b/zephyr/shim/src/bc12_pi3usb9201.c index 25d1962ff2..d41fcc3212 100644 --- a/zephyr/shim/src/bc12_pi3usb9201.c +++ b/zephyr/shim/src/bc12_pi3usb9201.c @@ -5,20 +5,16 @@ #define DT_DRV_COMPAT pericom_pi3usb9201 -#include <zephyr/devicetree.h> #include "bc12/pi3usb9201_public.h" #include "gpio/gpio_int.h" #include "hooks.h" +#include "i2c/i2c.h" #include "task.h" #include "usb_charge.h" #include "usb_pd.h" #include "usbc/utils.h" -#include "i2c/i2c.h" -#if DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT) - -BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) > 0, - "No compatible BC1.2 instance found"); +#include <zephyr/devicetree.h> #define USBC_PORT_BC12(usbc_id, bc12_id) \ [USBC_PORT_NEW(usbc_id)] = { \ @@ -56,5 +52,3 @@ void usb1_evt(enum gpio_signal signal) usb_charger_task_set_event(1, USB_CHG_EVENT_BC12); } #endif - -#endif /* DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT) */ |