From 51ff4ced598ff50685a2b666daddd4a35d033b5b Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Thu, 3 Aug 2023 12:53:27 -0700 Subject: [PATCH] clock_control: renames shadow variables Renames shadow variables found by -Wshadow. Signed-off-by: Daniel Leung --- drivers/clock_control/clock_control_litex.c | 2 -- drivers/clock_control/nrf_clock_calibration.c | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) 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)