drivers: video: Convert DEVICE_AND_API_INIT to DEVICE_DEFINE

Convert driver(s) to DEVICE_DEFINE instead of DEVICE_AND_API_INIT
so we can deprecate DEVICE_AND_API_INIT in the future.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-12-18 08:52:46 -06:00 committed by Anas Nashif
parent e23238da1a
commit 19ecf1f19f
1 changed files with 3 additions and 2 deletions

View File

@ -273,7 +273,8 @@ static int video_sw_generator_init(const struct device *dev)
return 0;
}
DEVICE_AND_API_INIT(video_sw_generator, "VIDEO_SW_GENERATOR",
&video_sw_generator_init, &video_sw_generator_data_0, NULL,
DEVICE_DEFINE(video_sw_generator, "VIDEO_SW_GENERATOR",
&video_sw_generator_init, device_pm_control_nop,
&video_sw_generator_data_0, NULL,
POST_KERNEL, CONFIG_VIDEO_INIT_PRIORITY,
&video_sw_generator_driver_api);