drivers: usb_c: tcpc: Place API into iterable section
Add wrapper DEVICE_API macro to all tcpc_driver_api instances. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
f52fc52ac1
commit
3c0cdd14d8
3 changed files with 3 additions and 3 deletions
|
|
@ -543,7 +543,7 @@ int ps8xxx_tcpc_set_alert_handler_cb(const struct device *dev, tcpc_alert_handle
|
||||||
|
|
||||||
/* Functions not assigned to the driver API but used by device */
|
/* Functions not assigned to the driver API but used by device */
|
||||||
|
|
||||||
static const struct tcpc_driver_api ps8xxx_driver_api = {
|
static DEVICE_API(tcpc, ps8xxx_driver_api) = {
|
||||||
.init = ps8xxx_tcpc_init,
|
.init = ps8xxx_tcpc_init,
|
||||||
.get_cc = ps8xxx_tcpc_get_cc,
|
.get_cc = ps8xxx_tcpc_get_cc,
|
||||||
.select_rp_value = ps8xxx_tcpc_select_rp_value,
|
.select_rp_value = ps8xxx_tcpc_select_rp_value,
|
||||||
|
|
|
||||||
|
|
@ -2304,7 +2304,7 @@ int numaker_tcpc_vbus_enable(const struct device *dev, bool enable)
|
||||||
|
|
||||||
/* End of "*_tcpc_vbus_*" functions */
|
/* End of "*_tcpc_vbus_*" functions */
|
||||||
|
|
||||||
static const struct tcpc_driver_api numaker_tcpc_driver_api = {
|
static DEVICE_API(tcpc, numaker_tcpc_driver_api) = {
|
||||||
.init = numaker_tcpc_init_recycle,
|
.init = numaker_tcpc_init_recycle,
|
||||||
.get_cc = numaker_tcpc_get_cc,
|
.get_cc = numaker_tcpc_get_cc,
|
||||||
.select_rp_value = numaker_tcpc_select_rp_value,
|
.select_rp_value = numaker_tcpc_select_rp_value,
|
||||||
|
|
|
||||||
|
|
@ -1418,7 +1418,7 @@ static int ucpd_init(const struct device *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct tcpc_driver_api driver_api = {
|
static DEVICE_API(tcpc, driver_api) = {
|
||||||
.init = ucpd_init,
|
.init = ucpd_init,
|
||||||
.set_alert_handler_cb = ucpd_set_alert_handler_cb,
|
.set_alert_handler_cb = ucpd_set_alert_handler_cb,
|
||||||
.get_cc = ucpd_get_cc,
|
.get_cc = ucpd_get_cc,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue