Commit 0cb15e8a authored by Eliav Farber's avatar Eliav Farber Committed by Guenter Roeck

hwmon: (mr75203) fix coding style space errors

Fix: "ERROR: space required before the open parenthesis '('"

All of the errors were introduced before this series of patches.
Signed-off-by: default avatarEliav Farber <farbere@amazon.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220908152449.35457-22-farbere@amazon.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent a4dd0b80
...@@ -290,7 +290,7 @@ static int pvt_read_temp(struct device *dev, u32 attr, int channel, long *val) ...@@ -290,7 +290,7 @@ static int pvt_read_temp(struct device *dev, u32 attr, int channel, long *val)
return ret; return ret;
ret = regmap_read(t_map, SDIF_DATA(channel), &nbs); ret = regmap_read(t_map, SDIF_DATA(channel), &nbs);
if(ret < 0) if (ret < 0)
return ret; return ret;
nbs &= SAMPLE_DATA_MSK; nbs &= SAMPLE_DATA_MSK;
...@@ -331,7 +331,7 @@ static int pvt_read_in(struct device *dev, u32 attr, int channel, long *val) ...@@ -331,7 +331,7 @@ static int pvt_read_in(struct device *dev, u32 attr, int channel, long *val)
return ret; return ret;
ret = regmap_read(v_map, VM_SDIF_DATA(vm_idx, ch_idx), &n); ret = regmap_read(v_map, VM_SDIF_DATA(vm_idx, ch_idx), &n);
if(ret < 0) if (ret < 0)
return ret; return ret;
n &= SAMPLE_DATA_MSK; n &= SAMPLE_DATA_MSK;
...@@ -427,19 +427,19 @@ static int pvt_init(struct pvt_device *pvt) ...@@ -427,19 +427,19 @@ static int pvt_init(struct pvt_device *pvt)
if (t_num) { if (t_num) {
ret = regmap_write(t_map, SDIF_SMPL_CTRL, 0x0); ret = regmap_write(t_map, SDIF_SMPL_CTRL, 0x0);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_write(t_map, SDIF_HALT, 0x0); ret = regmap_write(t_map, SDIF_HALT, 0x0);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_write(t_map, CLK_SYNTH, clk_synth); ret = regmap_write(t_map, CLK_SYNTH, clk_synth);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_write(t_map, SDIF_DISABLE, 0x0); ret = regmap_write(t_map, SDIF_DISABLE, 0x0);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_read_poll_timeout(t_map, SDIF_STAT, ret = regmap_read_poll_timeout(t_map, SDIF_STAT,
...@@ -452,7 +452,7 @@ static int pvt_init(struct pvt_device *pvt) ...@@ -452,7 +452,7 @@ static int pvt_init(struct pvt_device *pvt)
val = CFG0_MODE_2 | CFG0_PARALLEL_OUT | CFG0_12_BIT | val = CFG0_MODE_2 | CFG0_PARALLEL_OUT | CFG0_12_BIT |
IP_CFG << SDIF_ADDR_SFT | SDIF_WRN_W | SDIF_PROG; IP_CFG << SDIF_ADDR_SFT | SDIF_WRN_W | SDIF_PROG;
ret = regmap_write(t_map, SDIF_W, val); ret = regmap_write(t_map, SDIF_W, val);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_read_poll_timeout(t_map, SDIF_STAT, ret = regmap_read_poll_timeout(t_map, SDIF_STAT,
...@@ -465,7 +465,7 @@ static int pvt_init(struct pvt_device *pvt) ...@@ -465,7 +465,7 @@ static int pvt_init(struct pvt_device *pvt)
val = POWER_DELAY_CYCLE_256 | IP_TMR << SDIF_ADDR_SFT | val = POWER_DELAY_CYCLE_256 | IP_TMR << SDIF_ADDR_SFT |
SDIF_WRN_W | SDIF_PROG; SDIF_WRN_W | SDIF_PROG;
ret = regmap_write(t_map, SDIF_W, val); ret = regmap_write(t_map, SDIF_W, val);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_read_poll_timeout(t_map, SDIF_STAT, ret = regmap_read_poll_timeout(t_map, SDIF_STAT,
...@@ -479,39 +479,39 @@ static int pvt_init(struct pvt_device *pvt) ...@@ -479,39 +479,39 @@ static int pvt_init(struct pvt_device *pvt)
IP_CTRL << SDIF_ADDR_SFT | IP_CTRL << SDIF_ADDR_SFT |
SDIF_WRN_W | SDIF_PROG; SDIF_WRN_W | SDIF_PROG;
ret = regmap_write(t_map, SDIF_W, val); ret = regmap_write(t_map, SDIF_W, val);
if(ret < 0) if (ret < 0)
return ret; return ret;
} }
if (p_num) { if (p_num) {
ret = regmap_write(p_map, SDIF_HALT, 0x0); ret = regmap_write(p_map, SDIF_HALT, 0x0);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_write(p_map, SDIF_DISABLE, BIT(p_num) - 1); ret = regmap_write(p_map, SDIF_DISABLE, BIT(p_num) - 1);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_write(p_map, CLK_SYNTH, clk_synth); ret = regmap_write(p_map, CLK_SYNTH, clk_synth);
if(ret < 0) if (ret < 0)
return ret; return ret;
} }
if (v_num) { if (v_num) {
ret = regmap_write(v_map, SDIF_SMPL_CTRL, 0x0); ret = regmap_write(v_map, SDIF_SMPL_CTRL, 0x0);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_write(v_map, SDIF_HALT, 0x0); ret = regmap_write(v_map, SDIF_HALT, 0x0);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_write(v_map, CLK_SYNTH, clk_synth); ret = regmap_write(v_map, CLK_SYNTH, clk_synth);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_write(v_map, SDIF_DISABLE, 0x0); ret = regmap_write(v_map, SDIF_DISABLE, 0x0);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_read_poll_timeout(v_map, SDIF_STAT, ret = regmap_read_poll_timeout(v_map, SDIF_STAT,
...@@ -538,7 +538,7 @@ static int pvt_init(struct pvt_device *pvt) ...@@ -538,7 +538,7 @@ static int pvt_init(struct pvt_device *pvt)
CFG1_14_BIT | IP_CFG << SDIF_ADDR_SFT | CFG1_14_BIT | IP_CFG << SDIF_ADDR_SFT |
SDIF_WRN_W | SDIF_PROG; SDIF_WRN_W | SDIF_PROG;
ret = regmap_write(v_map, SDIF_W, val); ret = regmap_write(v_map, SDIF_W, val);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_read_poll_timeout(v_map, SDIF_STAT, ret = regmap_read_poll_timeout(v_map, SDIF_STAT,
...@@ -551,7 +551,7 @@ static int pvt_init(struct pvt_device *pvt) ...@@ -551,7 +551,7 @@ static int pvt_init(struct pvt_device *pvt)
val = POWER_DELAY_CYCLE_64 | IP_TMR << SDIF_ADDR_SFT | val = POWER_DELAY_CYCLE_64 | IP_TMR << SDIF_ADDR_SFT |
SDIF_WRN_W | SDIF_PROG; SDIF_WRN_W | SDIF_PROG;
ret = regmap_write(v_map, SDIF_W, val); ret = regmap_write(v_map, SDIF_W, val);
if(ret < 0) if (ret < 0)
return ret; return ret;
ret = regmap_read_poll_timeout(v_map, SDIF_STAT, ret = regmap_read_poll_timeout(v_map, SDIF_STAT,
...@@ -565,7 +565,7 @@ static int pvt_init(struct pvt_device *pvt) ...@@ -565,7 +565,7 @@ static int pvt_init(struct pvt_device *pvt)
IP_CTRL << SDIF_ADDR_SFT | IP_CTRL << SDIF_ADDR_SFT |
SDIF_WRN_W | SDIF_PROG; SDIF_WRN_W | SDIF_PROG;
ret = regmap_write(v_map, SDIF_W, val); ret = regmap_write(v_map, SDIF_W, val);
if(ret < 0) if (ret < 0)
return ret; return ret;
} }
...@@ -822,7 +822,7 @@ static int mr75203_probe(struct platform_device *pdev) ...@@ -822,7 +822,7 @@ static int mr75203_probe(struct platform_device *pdev)
} }
ret = regmap_read(pvt->c_map, PVT_IP_CONFIG, &val); ret = regmap_read(pvt->c_map, PVT_IP_CONFIG, &val);
if(ret < 0) if (ret < 0)
return ret; return ret;
ts_num = (val & TS_NUM_MSK) >> TS_NUM_SFT; ts_num = (val & TS_NUM_MSK) >> TS_NUM_SFT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment