This fixes following warning:
In function 'light_wdt_update_timeout':
drivers/watchdog/light_wdt.c:116:51: warning: implicit
conversion from
'enum light_aon_wdg_func' to 'enum light_aon_misc_func'
[-Wenum-conversion]
light_wdt_msg_hdr_fill(&wdt_dev->msg.hdr,
LIGHT_AON_WDG_FUNC_TIMEOUTSET);
Also, add a 'static' to a static function to suppress other warning.
Change-Id: Ia8f4daa37c58beffc8d0bdb8bcef20108cb282ab
Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
return LIGHT_TWDSCALE_MAX;
}
-static void light_wdt_msg_hdr_fill(struct light_aon_rpc_msg_hdr *hdr, enum light_aon_misc_func func)
+static void light_wdt_msg_hdr_fill(struct light_aon_rpc_msg_hdr *hdr, enum light_aon_wdg_func func)
{
hdr->svc = (uint8_t)LIGHT_AON_RPC_SVC_WDG;
hdr->func = (uint8_t)func;
return size;
}
-void light_pm_power_off(void)
+static void light_pm_power_off(void)
{
struct light_wdt_device *wdt_dev = light_power_off_wdt;
struct light_aon_ipc *ipc = wdt_dev->ipc_handle;