mirror of
https://github.com/torvalds/linux.git
synced 2024-09-21 15:33:19 +00:00
iio: adc: at91_adc: fix errors reported by checkpatch.pl
This fixes the errors reported by checkpatch.pl: ERROR: space prohibited before that ',' (ctx:WxW) ERROR: code indent should use tabs where possible Signed-off-by: Slawomir Stepien <sst@poczta.fm> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
038a8b34d3
commit
4c79dd006b
|
@ -797,8 +797,8 @@ static u32 calc_startup_ticks_9x5(u32 startup_time, u32 adc_clk_khz)
|
||||||
* Startup Time = <lookup_table_value> / ADC Clock
|
* Startup Time = <lookup_table_value> / ADC Clock
|
||||||
*/
|
*/
|
||||||
const int startup_lookup[] = {
|
const int startup_lookup[] = {
|
||||||
0 , 8 , 16 , 24 ,
|
0, 8, 16, 24,
|
||||||
64 , 80 , 96 , 112,
|
64, 80, 96, 112,
|
||||||
512, 576, 640, 704,
|
512, 576, 640, 704,
|
||||||
768, 832, 896, 960
|
768, 832, 896, 960
|
||||||
};
|
};
|
||||||
|
@ -924,14 +924,14 @@ static int at91_adc_probe_dt(struct at91_adc_state *st,
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto error_ret;
|
goto error_ret;
|
||||||
}
|
}
|
||||||
trig->name = name;
|
trig->name = name;
|
||||||
|
|
||||||
if (of_property_read_u32(trig_node, "trigger-value", &prop)) {
|
if (of_property_read_u32(trig_node, "trigger-value", &prop)) {
|
||||||
dev_err(&idev->dev, "Missing trigger-value property in the DT.\n");
|
dev_err(&idev->dev, "Missing trigger-value property in the DT.\n");
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto error_ret;
|
goto error_ret;
|
||||||
}
|
}
|
||||||
trig->value = prop;
|
trig->value = prop;
|
||||||
trig->is_external = of_property_read_bool(trig_node, "trigger-external");
|
trig->is_external = of_property_read_bool(trig_node, "trigger-external");
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user