/* Notify the application about changes to the BC1.2 partner.  */
static void pi3usb9201_update_charging_partner(const struct device *dev, struct bc12_partner_state *const state)
/* Notify the application about changes to the BC1.2 partner.  */
static void pi3usb9201_update_charging_partner(const struct device *dev, struct bc12_partner_state *const state)
{
	struct pi3usb9201_data *pi3usb9201_data = dev->data;
	if (!pi3usb9201_partner_has_changed(dev, state)) {
		return;
	}
	if (state) {
		pi3usb9201_data->partner_state = *state;
		pi3usb9201_notify_callback(dev, state);
	} else {
		pi3usb9201_data->partner_state.bc12_role = BC12_DISCONNECTED;
		pi3usb9201_notify_callback(dev, NULL);
	}
}