Commit c620da3a authored by Fabrice Gasnier's avatar Fabrice Gasnier Committed by Jonathan Cameron

iio: adc: stm32-dfsdm: misc style improvements and fixes

Misc fixes & style improvements:
- checkpatch warns about line over 80 characters.
- remove extra spaces and a blank line (e.g. checkpatch --strict)
- remove bad error message always printed in probe routine.
Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent d99066e6
...@@ -254,7 +254,8 @@ static int stm32_dfsdm_start_filter(struct stm32_dfsdm *dfsdm, ...@@ -254,7 +254,8 @@ static int stm32_dfsdm_start_filter(struct stm32_dfsdm *dfsdm,
DFSDM_CR1_RSWSTART(1)); DFSDM_CR1_RSWSTART(1));
} }
static void stm32_dfsdm_stop_filter(struct stm32_dfsdm *dfsdm, unsigned int fl_id) static void stm32_dfsdm_stop_filter(struct stm32_dfsdm *dfsdm,
unsigned int fl_id)
{ {
/* Disable conversion */ /* Disable conversion */
regmap_update_bits(dfsdm->regmap, DFSDM_CR1(fl_id), regmap_update_bits(dfsdm->regmap, DFSDM_CR1(fl_id),
...@@ -338,7 +339,7 @@ static int stm32_dfsdm_channel_parse_of(struct stm32_dfsdm *dfsdm, ...@@ -338,7 +339,7 @@ static int stm32_dfsdm_channel_parse_of(struct stm32_dfsdm *dfsdm,
"st,adc-channel-types", chan_idx, "st,adc-channel-types", chan_idx,
&of_str); &of_str);
if (!ret) { if (!ret) {
val = stm32_dfsdm_str2val(of_str, stm32_dfsdm_chan_type); val = stm32_dfsdm_str2val(of_str, stm32_dfsdm_chan_type);
if (val < 0) if (val < 0)
return val; return val;
} else { } else {
...@@ -350,7 +351,7 @@ static int stm32_dfsdm_channel_parse_of(struct stm32_dfsdm *dfsdm, ...@@ -350,7 +351,7 @@ static int stm32_dfsdm_channel_parse_of(struct stm32_dfsdm *dfsdm,
"st,adc-channel-clk-src", chan_idx, "st,adc-channel-clk-src", chan_idx,
&of_str); &of_str);
if (!ret) { if (!ret) {
val = stm32_dfsdm_str2val(of_str, stm32_dfsdm_chan_src); val = stm32_dfsdm_str2val(of_str, stm32_dfsdm_chan_src);
if (val < 0) if (val < 0)
return val; return val;
} else { } else {
...@@ -1090,7 +1091,6 @@ static int stm32_dfsdm_adc_probe(struct platform_device *pdev) ...@@ -1090,7 +1091,6 @@ static int stm32_dfsdm_adc_probe(struct platform_device *pdev)
char *name; char *name;
int ret, irq, val; int ret, irq, val;
dev_data = of_device_get_match_data(dev); dev_data = of_device_get_match_data(dev);
iio = devm_iio_device_alloc(dev, sizeof(*adc)); iio = devm_iio_device_alloc(dev, sizeof(*adc));
if (!iio) { if (!iio) {
...@@ -1158,7 +1158,6 @@ static int stm32_dfsdm_adc_probe(struct platform_device *pdev) ...@@ -1158,7 +1158,6 @@ static int stm32_dfsdm_adc_probe(struct platform_device *pdev)
if (ret < 0) if (ret < 0)
goto err_cleanup; goto err_cleanup;
dev_err(dev, "of_platform_populate\n");
if (dev_data->type == DFSDM_AUDIO) { if (dev_data->type == DFSDM_AUDIO) {
ret = of_platform_populate(np, NULL, NULL, dev); ret = of_platform_populate(np, NULL, NULL, dev);
if (ret < 0) { if (ret < 0) {
......
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