diff --git a/drivers/clock_control/clock_control_litex.c b/drivers/clock_control/clock_control_litex.c index 65566048003..b2d04a3cc92 100644 --- a/drivers/clock_control/clock_control_litex.c +++ b/drivers/clock_control/clock_control_litex.c @@ -975,8 +975,6 @@ static int litex_clk_set_duty_cycle(struct litex_clk_clkout *lcko, *low_time = &lcko->div.low_time; if (lcko->frac.frac == 0) { - int ret; - lcko->ts_config.duty = *duty; LOG_DBG("CLKOUT%d: setting duty: %u/%u", lcko->id, duty->num, duty->den); diff --git a/drivers/clock_control/nrf_clock_calibration.c b/drivers/clock_control/nrf_clock_calibration.c index 409c263a91c..bea799515e1 100644 --- a/drivers/clock_control/nrf_clock_calibration.c +++ b/drivers/clock_control/nrf_clock_calibration.c @@ -44,7 +44,7 @@ static void cal_lf_callback(struct onoff_manager *mgr, struct onoff_client *cli, uint32_t state, int res); -static struct onoff_client cli; +static struct onoff_client client; static struct onoff_manager *mgrs; /* Temperature sensor is only needed if @@ -87,12 +87,12 @@ static void clk_release(struct onoff_manager *mgr) static void hf_request(void) { - clk_request(&mgrs[CLOCK_CONTROL_NRF_TYPE_HFCLK], &cli, cal_hf_callback); + clk_request(&mgrs[CLOCK_CONTROL_NRF_TYPE_HFCLK], &client, cal_hf_callback); } static void lf_request(void) { - clk_request(&mgrs[CLOCK_CONTROL_NRF_TYPE_LFCLK], &cli, cal_lf_callback); + clk_request(&mgrs[CLOCK_CONTROL_NRF_TYPE_LFCLK], &client, cal_lf_callback); } static void hf_release(void)