Skip to content

Commit

Permalink
drivers: i3c: cdns: add api call for default handler
Browse files Browse the repository at this point in the history
add api calls for the default handlers for i2c and i3c rtio

Signed-off-by: Ryan McClelland <[email protected]>
  • Loading branch information
XenuIsWatching committed Oct 23, 2024
1 parent 966332a commit 09bfbd9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/i3c/i3c_cdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -3284,6 +3284,9 @@ static int cdns_i3c_bus_init(const struct device *dev)
static struct i3c_driver_api api = {
.i2c_api.configure = cdns_i3c_i2c_api_configure,
.i2c_api.transfer = cdns_i3c_i2c_api_transfer,
#ifdef CONFIG_I2C_RTIO
.i2c_api.iodev_submit = i2c_iodev_submit_fallback,
#endif

.configure = cdns_i3c_configure,
.config_get = cdns_i3c_config_get,
Expand All @@ -3310,6 +3313,10 @@ static struct i3c_driver_api api = {
.ibi_disable = cdns_i3c_controller_ibi_disable,
.ibi_raise = cdns_i3c_target_ibi_raise,
#endif

#ifdef CONFIG_I3C_RTIO
.iodev_submit = i3c_iodev_submit_fallback,
#endif
};

#define CADENCE_I3C_INSTANTIATE(n) \
Expand Down

0 comments on commit 09bfbd9

Please sign in to comment.