drivers: ec_host_cmd_periph: Convert drivers to new DT device macros

Convert ec_host_cmd_periph drivers from:

	DEVICE_AND_API_INIT -> DEVICE_DT_INST_DEFINE

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-12-15 08:07:29 -06:00 committed by Maureen Helm
commit c8fd75ba29

View file

@ -80,6 +80,6 @@ static int ec_host_cmd_sim_init(const struct device *dev)
}
/* Assume only one simulator */
DEVICE_AND_API_INIT(ec_host_cmd_simulator, DT_INST_LABEL(0),
ec_host_cmd_sim_init, NULL, NULL, POST_KERNEL,
DEVICE_DT_INST_DEFINE(0, ec_host_cmd_sim_init, device_pm_control_nop,
NULL, NULL, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &ec_host_cmd_api);