aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/at91_adc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/adc/at91_adc.c')
-rw-r--r--drivers/iio/adc/at91_adc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index f284cd6a93d6..52430ba171f3 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -797,8 +797,8 @@ static u32 calc_startup_ticks_9x5(u32 startup_time, u32 adc_clk_khz)
797 * Startup Time = <lookup_table_value> / ADC Clock 797 * Startup Time = <lookup_table_value> / ADC Clock
798 */ 798 */
799 const int startup_lookup[] = { 799 const int startup_lookup[] = {
800 0 , 8 , 16 , 24 , 800 0, 8, 16, 24,
801 64 , 80 , 96 , 112, 801 64, 80, 96, 112,
802 512, 576, 640, 704, 802 512, 576, 640, 704,
803 768, 832, 896, 960 803 768, 832, 896, 960
804 }; 804 };
@@ -924,14 +924,14 @@ static int at91_adc_probe_dt(struct at91_adc_state *st,
924 ret = -EINVAL; 924 ret = -EINVAL;
925 goto error_ret; 925 goto error_ret;
926 } 926 }
927 trig->name = name; 927 trig->name = name;
928 928
929 if (of_property_read_u32(trig_node, "trigger-value", &prop)) { 929 if (of_property_read_u32(trig_node, "trigger-value", &prop)) {
930 dev_err(&idev->dev, "Missing trigger-value property in the DT.\n"); 930 dev_err(&idev->dev, "Missing trigger-value property in the DT.\n");
931 ret = -EINVAL; 931 ret = -EINVAL;
932 goto error_ret; 932 goto error_ret;
933 } 933 }
934 trig->value = prop; 934 trig->value = prop;
935 trig->is_external = of_property_read_bool(trig_node, "trigger-external"); 935 trig->is_external = of_property_read_bool(trig_node, "trigger-external");
936 i++; 936 i++;
937 } 937 }