Skip to content

Commit 786b44a

Browse files
krzkjic23
authored andcommitted
iio: adc: exynos: Simplify Exynos7-specific init
The Exynos7-specific code bits in ADC driver do not play with PHY: the field exynos_adc_data.needs_adc_phy is not set in exynos7_adc_data instance. Therefore the initialization code does not have to check if it is true. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Alim Akhtar <[email protected]> Tested-by: Alim Akhtar <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 754718a commit 786b44a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/iio/adc/exynos_adc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,6 @@ static void exynos_adc_exynos7_init_hw(struct exynos_adc *info)
449449
{
450450
u32 con1, con2;
451451

452-
if (info->data->needs_adc_phy)
453-
regmap_write(info->pmu_map, info->data->phy_offset, 1);
454-
455452
con1 = ADC_V2_CON1_SOFT_RESET;
456453
writel(con1, ADC_V2_CON1(info->regs));
457454

0 commit comments

Comments
 (0)