usb-c: Fix policy callback function assertion

Fix the assertion check that's performed on a non-existing
callback.

Signed-off-by: Sam Hurst <sbh1187@gmail.com>
This commit is contained in:
Sam Hurst 2022-10-26 15:50:24 -07:00 committed by Carles Cufí
parent 96698450c4
commit cc393f24af

View file

@ -679,7 +679,7 @@ static uint32_t policy_get_request_data_object(const struct device *dev)
struct usbc_port_data *data = dev->data;
/* This callback must be implemented */
__ASSERT(data->policy_cb_get_request_data_object != NULL,
__ASSERT(data->policy_cb_get_rdo != NULL,
"Callback pointer should not be NULL");
return data->policy_cb_get_rdo(dev);