/* Get configuration of the I3C hardware. 
This can return cached config or probed hardware parameters, but it has to be up to date with current configuration. */
static int cdns_i3c_config_get(const struct device *dev, enum i3c_config_type type, void *config)
/* Get configuration of the I3C hardware. 
This can return cached config or probed hardware parameters, but it has to be up to date with current configuration. */
static int cdns_i3c_config_get(const struct device *dev, enum i3c_config_type type, void *config)
{
	struct cdns_i3c_data *data = dev->data;
	int ret = 0;
	if (config == NULL) {
		ret = -EINVAL;
		goto out_configure;
	}
	(void)memcpy(config, &data->common.ctrl_config, sizeof(data->common.ctrl_config));
out_configure:
	return ret;
}