]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: adc: exynos_adc: Drop platform data support
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 30 Aug 2025 16:48:32 +0000 (18:48 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 10 Sep 2025 18:47:04 +0000 (19:47 +0100)
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>
drivers/iio/adc/exynos_adc.c
include/linux/platform_data/touchscreen-s3c2410.h [deleted file]

index dd4b9921a8b5001120589c7021cf8f780dce1783..1484adff00df38dbb638cac744c59005a9579f19 100644 (file)
@@ -29,8 +29,6 @@
 #include <linux/mfd/syscon.h>
 #include <linux/regmap.h>
 
-#include <linux/platform_data/touchscreen-s3c2410.h>
-
 /* S3C/EXYNOS4412/5250 ADC_V1 registers definitions */
 #define ADC_V1_CON(x)          ((x) + 0x00)
 #define ADC_V1_DLY(x)          ((x) + 0x08)
@@ -106,7 +104,6 @@ struct exynos_adc {
        struct clk              *clk;
        struct clk              *sclk;
        unsigned int            irq;
-       unsigned int            delay;
        struct regulator        *vdd;
 
        struct completion       completion;
@@ -213,7 +210,7 @@ static void exynos_adc_v1_init_hw(struct exynos_adc *info)
        writel(con1, ADC_V1_CON(info->regs));
 
        /* set touchscreen delay */
-       writel(info->delay, ADC_V1_DLY(info->regs));
+       writel(10000, ADC_V1_DLY(info->regs));
 }
 
 static void exynos_adc_v1_exit_hw(struct exynos_adc *info)
@@ -556,7 +553,6 @@ static int exynos_adc_probe(struct platform_device *pdev)
 {
        struct exynos_adc *info = NULL;
        struct device_node *np = pdev->dev.of_node;
-       struct s3c2410_ts_mach_info *pdata = dev_get_platdata(&pdev->dev);
        struct iio_dev *indio_dev = NULL;
        int ret;
        int irq;
@@ -655,11 +651,6 @@ static int exynos_adc_probe(struct platform_device *pdev)
        if (info->data->init_hw)
                info->data->init_hw(info);
 
-       if (pdata)
-               info->delay = pdata->delay;
-       else
-               info->delay = 10000;
-
        ret = of_platform_populate(np, exynos_adc_match, NULL, &indio_dev->dev);
        if (ret < 0) {
                dev_err(&pdev->dev, "failed adding child nodes\n");
diff --git a/include/linux/platform_data/touchscreen-s3c2410.h b/include/linux/platform_data/touchscreen-s3c2410.h
deleted file mode 100644 (file)
index bf8d3b9..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-/*
- * Copyright (c) 2005 Arnaud Patard <arnaud.patard@rtp-net.org>
-*/
-
-#ifndef __TOUCHSCREEN_S3C2410_H
-#define __TOUCHSCREEN_S3C2410_H
-
-struct s3c2410_ts_mach_info {
-       int delay;
-       int presc;
-       int oversampling_shift;
-       void (*cfg_gpio)(struct platform_device *dev);
-};
-
-extern void s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *);
-extern void s3c64xx_ts_set_platdata(struct s3c2410_ts_mach_info *);
-
-/* defined by architecture to configure gpio */
-extern void s3c24xx_ts_cfg_gpio(struct platform_device *dev);
-
-#endif /*__TOUCHSCREEN_S3C2410_H */