hw/charge-control: Add bus driver support
@@ -364,8 +364,10 @@ struct charge_control {
/* Charge controller last reading timestamp */
struct charge_control_timestamp cc_sts;
+#if !MYNEWT_VAL(BUS_DRIVER_PRESENT)
/* Charge controller interface structure */
struct charge_control_itf cc_itf;
+#endif
/* A list of listeners that are registered to receive data from this
* charge controller
@@ -511,6 +513,7 @@ charge_control_check_type(struct charge_control *cc,
return (cc->cc_types & cc->cc_mask & type);
}
+#if !MYNEWT_VAL(BUS_DRIVER_PRESENT)
/**
* Set interface type and number
*
@@ -530,6 +533,7 @@ charge_control_set_interface(struct charge_control *cc,
return (0);
}
+#endif
/**
* Read the configuration for the charge control type "type," and return the
