diff options
author | Andrew F. Davis <afd@ti.com> | 2016-05-01 16:36:53 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-05-04 05:59:47 -0400 |
commit | e85fa0338b4c0399d7c42837f45f9afb8ede7541 (patch) | |
tree | e05162cf0fcd5e09a380bd1a3d3124a7dbe998f8 /drivers/iio | |
parent | daffd7a75c7e878845ddae8e16d9dc76eea7e2d2 (diff) |
iio: health/afe440x: Remove unneeded initializers
The drivers set some register values during initialization that can be
set at runtime, these defaults were used in testing but are not
necessary, remove these.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/health/afe4403.c | 7 | ||||
-rw-r--r-- | drivers/iio/health/afe4404.c | 4 |
2 files changed, 1 insertions, 10 deletions
diff --git a/drivers/iio/health/afe4403.c b/drivers/iio/health/afe4403.c index e3700cfec23d..54847853eb7a 100644 --- a/drivers/iio/health/afe4403.c +++ b/drivers/iio/health/afe4403.c | |||
@@ -472,12 +472,7 @@ static const struct iio_trigger_ops afe4403_trigger_ops = { | |||
472 | 472 | ||
473 | static const struct reg_sequence afe4403_reg_sequences[] = { | 473 | static const struct reg_sequence afe4403_reg_sequences[] = { |
474 | AFE4403_TIMING_PAIRS, | 474 | AFE4403_TIMING_PAIRS, |
475 | { AFE440X_CONTROL1, AFE440X_CONTROL1_TIMEREN | 0x000007}, | 475 | { AFE440X_CONTROL1, AFE440X_CONTROL1_TIMEREN }, |
476 | { AFE4403_TIA_AMB_GAIN, AFE4403_TIAGAIN_RES_1_M }, | ||
477 | { AFE440X_LEDCNTRL, (0x14 << AFE440X_LEDCNTRL_LED1_SHIFT) | | ||
478 | (0x14 << AFE440X_LEDCNTRL_LED2_SHIFT) }, | ||
479 | { AFE440X_CONTROL2, AFE440X_CONTROL2_TX_REF_050 << | ||
480 | AFE440X_CONTROL2_TX_REF_SHIFT }, | ||
481 | }; | 476 | }; |
482 | 477 | ||
483 | static const struct regmap_range afe4403_yes_ranges[] = { | 478 | static const struct regmap_range afe4403_yes_ranges[] = { |
diff --git a/drivers/iio/health/afe4404.c b/drivers/iio/health/afe4404.c index 783b9b437716..2d4c522f81e1 100644 --- a/drivers/iio/health/afe4404.c +++ b/drivers/iio/health/afe4404.c | |||
@@ -443,10 +443,6 @@ static const struct iio_trigger_ops afe4404_trigger_ops = { | |||
443 | static const struct reg_sequence afe4404_reg_sequences[] = { | 443 | static const struct reg_sequence afe4404_reg_sequences[] = { |
444 | AFE4404_TIMING_PAIRS, | 444 | AFE4404_TIMING_PAIRS, |
445 | { AFE440X_CONTROL1, AFE440X_CONTROL1_TIMEREN }, | 445 | { AFE440X_CONTROL1, AFE440X_CONTROL1_TIMEREN }, |
446 | { AFE4404_TIA_GAIN, AFE4404_TIA_GAIN_RES_50_K }, | ||
447 | { AFE440X_LEDCNTRL, (0xf << AFE4404_LEDCNTRL_ILED1_SHIFT) | | ||
448 | (0x3 << AFE4404_LEDCNTRL_ILED2_SHIFT) | | ||
449 | (0x3 << AFE4404_LEDCNTRL_ILED3_SHIFT) }, | ||
450 | { AFE440X_CONTROL2, AFE440X_CONTROL3_OSC_ENABLE }, | 446 | { AFE440X_CONTROL2, AFE440X_CONTROL3_OSC_ENABLE }, |
451 | }; | 447 | }; |
452 | 448 | ||