return ret;
}
+#ifdef ADC_TS
static int exynos_read_s3c64xx_ts(struct iio_dev *indio_dev, int *x, int *y)
{
struct exynos_adc *info = iio_priv(indio_dev);
return IRQ_HANDLED;
}
+#endif
static int exynos_adc_reg_access(struct iio_dev *indio_dev,
unsigned reg, unsigned writeval,
return 0;
}
+#ifdef ADC_TS
static int exynos_adc_ts_open(struct input_dev *dev)
{
struct exynos_adc *info = input_get_drvdata(dev);
return ret;
}
+#endif
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;
struct resource *mem;
bool has_ts = false;
input_unregister_device(info->input);
free_irq(info->tsirq, info);
}
+#ifdef ADC_TS
err_iio:
iio_device_unregister(indio_dev);
+#endif
err_irq:
free_irq(info->irq, info);
err_disable_clk: