Commit 51ff4ced authored by Daniel Leung's avatar Daniel Leung Committed by Fabio Baltieri
Browse files

clock_control: renames shadow variables



Renames	shadow variables found by -Wshadow.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 87a3f305
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);
+3 −3
Original line number Diff line number Diff line
@@ -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)