clock: z_clock_device_ctrl -> sys_clock_device_ctrl

Do not use z_ for internal APIs, z_ is for private APIs within one
subsystem only.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-03-13 08:03:11 -05:00
commit ffd01833d3

View file

@ -30,7 +30,7 @@ int __weak sys_clock_driver_init(const struct device *device)
return 0; return 0;
} }
int __weak z_clock_device_ctrl(const struct device *device, int __weak sys_clock_device_ctrl(const struct device *device,
uint32_t ctrl_command, uint32_t ctrl_command,
void *context, device_pm_cb cb, void *arg) void *context, device_pm_cb cb, void *arg)
{ {
@ -49,5 +49,5 @@ void __weak sys_clock_disable(void)
{ {
} }
SYS_DEVICE_DEFINE("sys_clock", sys_clock_driver_init, z_clock_device_ctrl, SYS_DEVICE_DEFINE("sys_clock", sys_clock_driver_init, sys_clock_device_ctrl,
PRE_KERNEL_2, CONFIG_SYSTEM_CLOCK_INIT_PRIORITY); PRE_KERNEL_2, CONFIG_SYSTEM_CLOCK_INIT_PRIORITY);