clock_control: renames shadow variables
Renames shadow variables found by -Wshadow. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
87a3f305bf
commit
51ff4ced59
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue