Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: adc: exynos_adc: Drop platform data support

There are no Samsung Exynos SoC ADC driver users which bind via platform
ID, thus platform data is never set and can be dropped.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250830-s3c-cleanup-adc-v2-3-4f8299343d32@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Krzysztof Kozlowski and committed by
Jonathan Cameron
1dfdf452 1ef28bcc

+1 -32
+1 -10
drivers/iio/adc/exynos_adc.c
··· 29 29 #include <linux/mfd/syscon.h> 30 30 #include <linux/regmap.h> 31 31 32 - #include <linux/platform_data/touchscreen-s3c2410.h> 33 - 34 32 /* S3C/EXYNOS4412/5250 ADC_V1 registers definitions */ 35 33 #define ADC_V1_CON(x) ((x) + 0x00) 36 34 #define ADC_V1_DLY(x) ((x) + 0x08) ··· 104 106 struct clk *clk; 105 107 struct clk *sclk; 106 108 unsigned int irq; 107 - unsigned int delay; 108 109 struct regulator *vdd; 109 110 110 111 struct completion completion; ··· 210 213 writel(con1, ADC_V1_CON(info->regs)); 211 214 212 215 /* set touchscreen delay */ 213 - writel(info->delay, ADC_V1_DLY(info->regs)); 216 + writel(10000, ADC_V1_DLY(info->regs)); 214 217 } 215 218 216 219 static void exynos_adc_v1_exit_hw(struct exynos_adc *info) ··· 553 556 { 554 557 struct exynos_adc *info = NULL; 555 558 struct device_node *np = pdev->dev.of_node; 556 - struct s3c2410_ts_mach_info *pdata = dev_get_platdata(&pdev->dev); 557 559 struct iio_dev *indio_dev = NULL; 558 560 int ret; 559 561 int irq; ··· 650 654 651 655 if (info->data->init_hw) 652 656 info->data->init_hw(info); 653 - 654 - if (pdata) 655 - info->delay = pdata->delay; 656 - else 657 - info->delay = 10000; 658 657 659 658 ret = of_platform_populate(np, exynos_adc_match, NULL, &indio_dev->dev); 660 659 if (ret < 0) {
-22
include/linux/platform_data/touchscreen-s3c2410.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0-only */ 2 - /* 3 - * Copyright (c) 2005 Arnaud Patard <arnaud.patard@rtp-net.org> 4 - */ 5 - 6 - #ifndef __TOUCHSCREEN_S3C2410_H 7 - #define __TOUCHSCREEN_S3C2410_H 8 - 9 - struct s3c2410_ts_mach_info { 10 - int delay; 11 - int presc; 12 - int oversampling_shift; 13 - void (*cfg_gpio)(struct platform_device *dev); 14 - }; 15 - 16 - extern void s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *); 17 - extern void s3c64xx_ts_set_platdata(struct s3c2410_ts_mach_info *); 18 - 19 - /* defined by architecture to configure gpio */ 20 - extern void s3c24xx_ts_cfg_gpio(struct platform_device *dev); 21 - 22 - #endif /*__TOUCHSCREEN_S3C2410_H */