* [PATCH 1/7] input/ti_am_335x_tsc: remove the else case
@ 2013-05-22 21:08 Sebastian Andrzej Siewior
2013-05-22 21:08 ` [PATCH 5/7] iio/ti_am335x_adc: remove platform_data support Sebastian Andrzej Siewior
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Sebastian Andrzej Siewior @ 2013-05-22 21:08 UTC (permalink / raw)
To: linux-iio-u79uwXL29TY76Z2rM5mHXA,
linux-input-u79uwXL29TY76Z2rM5mHXA
Cc: Jonathan Cameron, Dmitry Torokhov, Samuel Ortiz, Felipe Balbi,
Patil Rachna, Sebastian Andrzej Siewior
The DT support added in ("input: touchscreen: am335x: Add DT support")
added an else case which shifts the code to the righ for no reaseon.
This patch simply removes the pointless else case and shifts the code
back to the left.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
---
drivers/input/touchscreen/ti_am335x_tsc.c | 63 +++++++++++++----------------
1 file changed, 28 insertions(+), 35 deletions(-)
diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c
index 4fcf72f..20f4505 100644
--- a/drivers/input/touchscreen/ti_am335x_tsc.c
+++ b/drivers/input/touchscreen/ti_am335x_tsc.c
@@ -396,41 +396,34 @@ static int titsc_parse_dt(struct ti_tscadc_dev *tscadc_dev,
if (!node)
return -EINVAL;
- else {
- node = of_get_child_by_name(node, "tsc");
- if (!node)
- return -EINVAL;
- else {
- err = of_property_read_u32(node, "ti,wires", &val32);
- if (err < 0)
- goto error_ret;
- else
- ts_dev->wires = val32;
-
- err = of_property_read_u32(node,
- "ti,x-plate-resistance", &val32);
- if (err < 0)
- goto error_ret;
- else
- ts_dev->x_plate_resistance = val32;
-
- err = of_property_read_u32(node,
- "ti,steps-to-configure", &val32);
- if (err < 0)
- goto error_ret;
- else
- ts_dev->steps_to_configure = val32;
-
- err = of_property_read_u32_array(node, "ti,wire-config",
- wires_conf, ARRAY_SIZE(wires_conf));
- if (err < 0)
- goto error_ret;
- else {
- for (i = 0; i < ARRAY_SIZE(wires_conf); i++)
- ts_dev->config_inp[i] = wires_conf[i];
- }
- }
- }
+
+ node = of_get_child_by_name(node, "tsc");
+ if (!node)
+ return -EINVAL;
+ err = of_property_read_u32(node, "ti,wires", &val32);
+ if (err < 0)
+ goto error_ret;
+ ts_dev->wires = val32;
+
+ err = of_property_read_u32(node,
+ "ti,x-plate-resistance", &val32);
+ if (err < 0)
+ goto error_ret;
+ ts_dev->x_plate_resistance = val32;
+
+ err = of_property_read_u32(node,
+ "ti,steps-to-configure", &val32);
+ if (err < 0)
+ goto error_ret;
+ ts_dev->steps_to_configure = val32;
+
+ err = of_property_read_u32_array(node, "ti,wire-config",
+ wires_conf, ARRAY_SIZE(wires_conf));
+ if (err < 0)
+ goto error_ret;
+
+ for (i = 0; i < ARRAY_SIZE(wires_conf); i++)
+ ts_dev->config_inp[i] = wires_conf[i];
return 0;
error_ret:
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/7] input/ti_am33x_tsc: remove platform_data support
[not found] ` <1369256897-25984-1-git-send-email-bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
@ 2013-05-22 21:08 ` Sebastian Andrzej Siewior
2013-05-22 21:08 ` [PATCH 3/7] input/i_am335x_tsc: removed unused variable in titsc_irq() Sebastian Andrzej Siewior
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Sebastian Andrzej Siewior @ 2013-05-22 21:08 UTC (permalink / raw)
To: linux-iio-u79uwXL29TY76Z2rM5mHXA,
linux-input-u79uwXL29TY76Z2rM5mHXA
Cc: Jonathan Cameron, Dmitry Torokhov, Samuel Ortiz, Felipe Balbi,
Patil Rachna, Sebastian Andrzej Siewior
This patch removes access to platform data mfd_tscadc_board because the
platform is DT only.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
---
drivers/input/touchscreen/ti_am335x_tsc.c | 27 ++-------------------------
1 file changed, 2 insertions(+), 25 deletions(-)
diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c
index 20f4505..e778ffd 100644
--- a/drivers/input/touchscreen/ti_am335x_tsc.c
+++ b/drivers/input/touchscreen/ti_am335x_tsc.c
@@ -24,7 +24,6 @@
#include <linux/clk.h>
#include <linux/platform_device.h>
#include <linux/io.h>
-#include <linux/input/ti_am335x_tsc.h>
#include <linux/delay.h>
#include <linux/of.h>
#include <linux/of_device.h>
@@ -430,24 +429,6 @@ static int titsc_parse_dt(struct ti_tscadc_dev *tscadc_dev,
return err;
}
-static int titsc_parse_pdata(struct ti_tscadc_dev *tscadc_dev,
- struct titsc *ts_dev)
-{
- struct mfd_tscadc_board *pdata = tscadc_dev->dev->platform_data;
-
- if (!pdata)
- return -EINVAL;
-
- ts_dev->wires = pdata->tsc_init->wires;
- ts_dev->x_plate_resistance =
- pdata->tsc_init->x_plate_resistance;
- ts_dev->steps_to_configure =
- pdata->tsc_init->steps_to_configure;
- memcpy(ts_dev->config_inp, pdata->tsc_init->wire_config,
- sizeof(pdata->tsc_init->wire_config));
- return 0;
-}
-
/*
* The functions for inserting/removing driver as a module.
*/
@@ -473,13 +454,9 @@ static int titsc_probe(struct platform_device *pdev)
ts_dev->input = input_dev;
ts_dev->irq = tscadc_dev->irq;
- if (tscadc_dev->dev->platform_data)
- err = titsc_parse_pdata(tscadc_dev, ts_dev);
- else
- err = titsc_parse_dt(tscadc_dev, ts_dev);
-
+ err = titsc_parse_dt(tscadc_dev, ts_dev);
if (err) {
- dev_err(&pdev->dev, "Could not find platform data\n");
+ dev_err(&pdev->dev, "Could not find valid DT data.\n");
err = -EINVAL;
goto err_free_mem;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/7] input/i_am335x_tsc: removed unused variable in titsc_irq()
[not found] ` <1369256897-25984-1-git-send-email-bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2013-05-22 21:08 ` [PATCH 2/7] input/ti_am33x_tsc: " Sebastian Andrzej Siewior
@ 2013-05-22 21:08 ` Sebastian Andrzej Siewior
2013-05-22 21:44 ` Jonathan Cameron
2013-05-22 21:08 ` [PATCH 4/7] iio/ti_am335x_adc: remove the else case Sebastian Andrzej Siewior
2013-05-22 21:08 ` [PATCH 6/7] mfd/ti_am335x_tscadc: remove platform_data support Sebastian Andrzej Siewior
3 siblings, 1 reply; 10+ messages in thread
From: Sebastian Andrzej Siewior @ 2013-05-22 21:08 UTC (permalink / raw)
To: linux-iio-u79uwXL29TY76Z2rM5mHXA,
linux-input-u79uwXL29TY76Z2rM5mHXA
Cc: Jonathan Cameron, Dmitry Torokhov, Samuel Ortiz, Felipe Balbi,
Patil Rachna, Sebastian Andrzej Siewior
Signed-off-by: Sebastian Andrzej Siewior <bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
---
drivers/input/touchscreen/ti_am335x_tsc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c
index e778ffd..a85818b 100644
--- a/drivers/input/touchscreen/ti_am335x_tsc.c
+++ b/drivers/input/touchscreen/ti_am335x_tsc.c
@@ -319,7 +319,6 @@ static irqreturn_t titsc_irq(int irq, void *dev)
unsigned int z1, z2, z;
unsigned int fsm;
unsigned int diffx = 0, diffy = 0;
- int i;
status = titsc_readl(ts_dev, REG_IRQSTATUS);
if (status & IRQENB_FIFO0THRES) {
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 4/7] iio/ti_am335x_adc: remove the else case
[not found] ` <1369256897-25984-1-git-send-email-bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2013-05-22 21:08 ` [PATCH 2/7] input/ti_am33x_tsc: " Sebastian Andrzej Siewior
2013-05-22 21:08 ` [PATCH 3/7] input/i_am335x_tsc: removed unused variable in titsc_irq() Sebastian Andrzej Siewior
@ 2013-05-22 21:08 ` Sebastian Andrzej Siewior
2013-05-22 21:55 ` Jonathan Cameron
2013-05-22 21:08 ` [PATCH 6/7] mfd/ti_am335x_tscadc: remove platform_data support Sebastian Andrzej Siewior
3 siblings, 1 reply; 10+ messages in thread
From: Sebastian Andrzej Siewior @ 2013-05-22 21:08 UTC (permalink / raw)
To: linux-iio-u79uwXL29TY76Z2rM5mHXA,
linux-input-u79uwXL29TY76Z2rM5mHXA
Cc: Jonathan Cameron, Dmitry Torokhov, Samuel Ortiz, Felipe Balbi,
Patil Rachna, Sebastian Andrzej Siewior
The DT support added in ("iio: adc: am335x: Add DT support")
added an else case which shifts the code to the righ for no reaseon.
This patch simply removes the pointless else case and shifts the code
back to the left.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
---
drivers/iio/adc/ti_am335x_adc.c | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c
index f258eb0..ac78672 100644
--- a/drivers/iio/adc/ti_am335x_adc.c
+++ b/drivers/iio/adc/ti_am335x_adc.c
@@ -214,14 +214,11 @@ static int tiadc_probe(struct platform_device *pdev)
node = of_get_child_by_name(node, "adc");
if (!node)
return -EINVAL;
- else {
- err = of_property_read_u32(node,
- "ti,adc-channels", &val32);
- if (err < 0)
- goto err_free_device;
- else
- adc_dev->channels = val32;
- }
+ err = of_property_read_u32(node,
+ "ti,adc-channels", &val32);
+ if (err < 0)
+ goto err_free_device;
+ adc_dev->channels = val32;
}
indio_dev->dev.parent = &pdev->dev;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 5/7] iio/ti_am335x_adc: remove platform_data support
2013-05-22 21:08 [PATCH 1/7] input/ti_am_335x_tsc: remove the else case Sebastian Andrzej Siewior
@ 2013-05-22 21:08 ` Sebastian Andrzej Siewior
[not found] ` <1369256897-25984-1-git-send-email-bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2013-05-22 21:08 ` [PATCH 7/7] Documentation/DT bindings: add info for TI TSC ADC Sebastian Andrzej Siewior
2 siblings, 0 replies; 10+ messages in thread
From: Sebastian Andrzej Siewior @ 2013-05-22 21:08 UTC (permalink / raw)
To: linux-iio, linux-input
Cc: Jonathan Cameron, Dmitry Torokhov, Samuel Ortiz, Felipe Balbi,
Patil Rachna, Sebastian Andrzej Siewior
This patch removes access to platform data mfd_tscadc_board because the
platform is DT only.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
drivers/iio/adc/ti_am335x_adc.c | 26 ++++++++++----------------
1 file changed, 10 insertions(+), 16 deletions(-)
diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c
index ac78672..1baf5b4 100644
--- a/drivers/iio/adc/ti_am335x_adc.c
+++ b/drivers/iio/adc/ti_am335x_adc.c
@@ -29,7 +29,6 @@
#include <linux/io.h>
#include <linux/mfd/ti_am335x_tscadc.h>
-#include <linux/platform_data/ti_am335x_adc.h>
struct tiadc_device {
struct ti_tscadc_dev *mfd_tscadc;
@@ -188,13 +187,12 @@ static int tiadc_probe(struct platform_device *pdev)
struct iio_dev *indio_dev;
struct tiadc_device *adc_dev;
struct ti_tscadc_dev *tscadc_dev = pdev->dev.platform_data;
- struct mfd_tscadc_board *pdata = tscadc_dev->dev->platform_data;
struct device_node *node = tscadc_dev->dev->of_node;
int err;
u32 val32;
- if (!pdata && !node) {
- dev_err(&pdev->dev, "Could not find platform data\n");
+ if (!node) {
+ dev_err(&pdev->dev, "Could not find valid DT data.\n");
return -EINVAL;
}
@@ -208,18 +206,14 @@ static int tiadc_probe(struct platform_device *pdev)
adc_dev->mfd_tscadc = tscadc_dev;
- if (pdata)
- adc_dev->channels = pdata->adc_init->adc_channels;
- else {
- node = of_get_child_by_name(node, "adc");
- if (!node)
- return -EINVAL;
- err = of_property_read_u32(node,
- "ti,adc-channels", &val32);
- if (err < 0)
- goto err_free_device;
- adc_dev->channels = val32;
- }
+ node = of_get_child_by_name(node, "adc");
+ if (!node)
+ return -EINVAL;
+ err = of_property_read_u32(node,
+ "ti,adc-channels", &val32);
+ if (err < 0)
+ goto err_free_device;
+ adc_dev->channels = val32;
indio_dev->dev.parent = &pdev->dev;
indio_dev->name = dev_name(&pdev->dev);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 6/7] mfd/ti_am335x_tscadc: remove platform_data support
[not found] ` <1369256897-25984-1-git-send-email-bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
` (2 preceding siblings ...)
2013-05-22 21:08 ` [PATCH 4/7] iio/ti_am335x_adc: remove the else case Sebastian Andrzej Siewior
@ 2013-05-22 21:08 ` Sebastian Andrzej Siewior
3 siblings, 0 replies; 10+ messages in thread
From: Sebastian Andrzej Siewior @ 2013-05-22 21:08 UTC (permalink / raw)
To: linux-iio-u79uwXL29TY76Z2rM5mHXA,
linux-input-u79uwXL29TY76Z2rM5mHXA
Cc: Jonathan Cameron, Dmitry Torokhov, Samuel Ortiz, Felipe Balbi,
Patil Rachna, Sebastian Andrzej Siewior
This patch removes access to platform data mfd_tscadc_board because the
platform is DT only.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
---
drivers/mfd/ti_am335x_tscadc.c | 23 ++++++-----------------
1 file changed, 6 insertions(+), 17 deletions(-)
diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c
index e28a31d..c27b147 100644
--- a/drivers/mfd/ti_am335x_tscadc.c
+++ b/drivers/mfd/ti_am335x_tscadc.c
@@ -26,8 +26,6 @@
#include <linux/of_device.h>
#include <linux/mfd/ti_am335x_tscadc.h>
-#include <linux/input/ti_am335x_tsc.h>
-#include <linux/platform_data/ti_am335x_adc.h>
static unsigned int tscadc_readl(struct ti_tscadc_dev *tsadc, unsigned int reg)
{
@@ -66,31 +64,22 @@ static int ti_tscadc_probe(struct platform_device *pdev)
struct ti_tscadc_dev *tscadc;
struct resource *res;
struct clk *clk;
- struct mfd_tscadc_board *pdata = pdev->dev.platform_data;
struct device_node *node = pdev->dev.of_node;
struct mfd_cell *cell;
int err, ctrl;
int clk_value, clock_rate;
int tsc_wires = 0, adc_channels = 0, total_channels;
- if (!pdata && !pdev->dev.of_node) {
- dev_err(&pdev->dev, "Could not find platform data\n");
+ if (!pdev->dev.of_node) {
+ dev_err(&pdev->dev, "Could not find valid DT data.\n");
return -EINVAL;
}
- if (pdev->dev.platform_data) {
- if (pdata->tsc_init)
- tsc_wires = pdata->tsc_init->wires;
+ node = of_get_child_by_name(pdev->dev.of_node, "tsc");
+ of_property_read_u32(node, "ti,wires", &tsc_wires);
- if (pdata->adc_init)
- adc_channels = pdata->adc_init->adc_channels;
- } else {
- node = of_get_child_by_name(pdev->dev.of_node, "tsc");
- of_property_read_u32(node, "ti,wires", &tsc_wires);
-
- node = of_get_child_by_name(pdev->dev.of_node, "adc");
- of_property_read_u32(node, "ti,adc-channels", &adc_channels);
- }
+ node = of_get_child_by_name(pdev->dev.of_node, "adc");
+ of_property_read_u32(node, "ti,adc-channels", &adc_channels);
total_channels = tsc_wires + adc_channels;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 7/7] Documentation/DT bindings: add info for TI TSC ADC
2013-05-22 21:08 [PATCH 1/7] input/ti_am_335x_tsc: remove the else case Sebastian Andrzej Siewior
2013-05-22 21:08 ` [PATCH 5/7] iio/ti_am335x_adc: remove platform_data support Sebastian Andrzej Siewior
[not found] ` <1369256897-25984-1-git-send-email-bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
@ 2013-05-22 21:08 ` Sebastian Andrzej Siewior
2 siblings, 0 replies; 10+ messages in thread
From: Sebastian Andrzej Siewior @ 2013-05-22 21:08 UTC (permalink / raw)
To: linux-iio, linux-input
Cc: Jonathan Cameron, Dmitry Torokhov, Samuel Ortiz, Felipe Balbi,
Patil Rachna, Sebastian Andrzej Siewior
The platform data structs are killed here because there are no users in
tree (nobody sets the structs up, the RO usage is beeing removed) and the
documentation about the parameters is saved here.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
.../bindings/input/touchscreen/ti-tsc-adc.txt | 38 ++++++++++++++++++++
include/linux/input/ti_am335x_tsc.h | 35 ------------------
include/linux/mfd/ti_am335x_tscadc.h | 5 ---
include/linux/platform_data/ti_am335x_adc.h | 14 --------
4 files changed, 38 insertions(+), 54 deletions(-)
create mode 100644 Documentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt
delete mode 100644 include/linux/input/ti_am335x_tsc.h
delete mode 100644 include/linux/platform_data/ti_am335x_adc.h
diff --git a/Documentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt b/Documentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt
new file mode 100644
index 0000000..e533e9d
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt
@@ -0,0 +1,38 @@
+* TI - TSC ADC (Touschscreen and analog digital converter)
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Required properties:
+- child "tsc"
+ ti,wires: Wires refer to application modes i.e. 4/5/8 wire touchscreen
+ support on the platform.
+ ti,x-plate-resistance: X plate resistance
+ ti,steps-to-configure: The sequencer supports a total of 16
+ programmable steps. A step configured to read a
+ single co-ordinate value. Can be applied more
+ number of times for better results.
+ ti,wire-config: Different boards could have a different order for
+ connecting wires on touchscreen. We need to provide an
+ 8 bit number where in the 1st four bits represent the
+ analog lines and the next 4 bits represent positive/
+ negative terminal on that input line. Notations to
+ represent the input lines and terminals resoectively
+ is as follows:
+ AIN0 = 0, AIN1 = 1 and so on till AIN7 = 7.
+ XP = 0, XN = 1, YP = 2, YN = 3.
+- child "adc"
+ ti,adc-channels: Number of analog inputs available for ADC
+
+Example:
+ tscadc: tscadc@44e0d000 {
+ compatible = "ti,ti-tscadc";
+ tsc {
+ ti,wires = <4>;
+ ti,x-plate-resistance = <200>;
+ ti,steps-to-configure = <5>;
+ ti,wire-config = <0x00 0x11 0x22 0x33>;
+ };
+
+ adc {
+ ti,adc-channels = <4>;
+ };
+ }
diff --git a/include/linux/input/ti_am335x_tsc.h b/include/linux/input/ti_am335x_tsc.h
deleted file mode 100644
index 6a66b4d..0000000
--- a/include/linux/input/ti_am335x_tsc.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef __LINUX_TI_AM335X_TSC_H
-#define __LINUX_TI_AM335X_TSC_H
-
-/**
- * struct tsc_data Touchscreen wire configuration
- * @wires: Wires refer to application modes
- * i.e. 4/5/8 wire touchscreen support
- * on the platform.
- * @x_plate_resistance: X plate resistance.
- * @steps_to_configure: The sequencer supports a total of
- * 16 programmable steps.
- * A step configured to read a single
- * co-ordinate value, can be applied
- * more number of times for better results.
- * @wire_config: Different EVM's could have a different order
- * for connecting wires on touchscreen.
- * We need to provide an 8 bit number where in
- * the 1st four bits represent the analog lines
- * and the next 4 bits represent positive/
- * negative terminal on that input line.
- * Notations to represent the input lines and
- * terminals resoectively is as follows:
- * AIN0 = 0, AIN1 = 1 and so on till AIN7 = 7.
- * XP = 0, XN = 1, YP = 2, YN = 3.
- *
- */
-
-struct tsc_data {
- int wires;
- int x_plate_resistance;
- int steps_to_configure;
- int wire_config[10];
-};
-
-#endif
diff --git a/include/linux/mfd/ti_am335x_tscadc.h b/include/linux/mfd/ti_am335x_tscadc.h
index 50a245f..c985262 100644
--- a/include/linux/mfd/ti_am335x_tscadc.h
+++ b/include/linux/mfd/ti_am335x_tscadc.h
@@ -128,11 +128,6 @@
#define TSCADC_CELLS 2
-struct mfd_tscadc_board {
- struct tsc_data *tsc_init;
- struct adc_data *adc_init;
-};
-
struct ti_tscadc_dev {
struct device *dev;
struct regmap *regmap_tscadc;
diff --git a/include/linux/platform_data/ti_am335x_adc.h b/include/linux/platform_data/ti_am335x_adc.h
deleted file mode 100644
index e41d583..0000000
--- a/include/linux/platform_data/ti_am335x_adc.h
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef __LINUX_TI_AM335X_ADC_H
-#define __LINUX_TI_AM335X_ADC_H
-
-/**
- * struct adc_data ADC Input information
- * @adc_channels: Number of analog inputs
- * available for ADC.
- */
-
-struct adc_data {
- unsigned int adc_channels;
-};
-
-#endif
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 3/7] input/i_am335x_tsc: removed unused variable in titsc_irq()
2013-05-22 21:08 ` [PATCH 3/7] input/i_am335x_tsc: removed unused variable in titsc_irq() Sebastian Andrzej Siewior
@ 2013-05-22 21:44 ` Jonathan Cameron
0 siblings, 0 replies; 10+ messages in thread
From: Jonathan Cameron @ 2013-05-22 21:44 UTC (permalink / raw)
To: Sebastian Andrzej Siewior
Cc: linux-iio, linux-input, Jonathan Cameron, Dmitry Torokhov,
Samuel Ortiz, Felipe Balbi, Patil Rachna
Check the patch title for the missing letter t. It jumped out at me.
On 05/22/2013 10:08 PM, Sebastian Andrzej Siewior wrote:
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
> drivers/input/touchscreen/ti_am335x_tsc.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c
> index e778ffd..a85818b 100644
> --- a/drivers/input/touchscreen/ti_am335x_tsc.c
> +++ b/drivers/input/touchscreen/ti_am335x_tsc.c
> @@ -319,7 +319,6 @@ static irqreturn_t titsc_irq(int irq, void *dev)
> unsigned int z1, z2, z;
> unsigned int fsm;
> unsigned int diffx = 0, diffy = 0;
> - int i;
>
> status = titsc_readl(ts_dev, REG_IRQSTATUS);
> if (status & IRQENB_FIFO0THRES) {
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 4/7] iio/ti_am335x_adc: remove the else case
2013-05-22 21:08 ` [PATCH 4/7] iio/ti_am335x_adc: remove the else case Sebastian Andrzej Siewior
@ 2013-05-22 21:55 ` Jonathan Cameron
2013-05-31 7:43 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 10+ messages in thread
From: Jonathan Cameron @ 2013-05-22 21:55 UTC (permalink / raw)
To: Sebastian Andrzej Siewior
Cc: linux-iio, linux-input, Jonathan Cameron, Dmitry Torokhov,
Samuel Ortiz, Felipe Balbi, Patil Rachna
On 05/22/2013 10:08 PM, Sebastian Andrzej Siewior wrote:
> The DT support added in ("iio: adc: am335x: Add DT support")
> added an else case which shifts the code to the righ for no reaseon.
> This patch simply removes the pointless else case and shifts the code
> back to the left.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Either I am going completely mad or I never took the original patch.
I'm not entirely sure I can remember why though. I think there were
issues with another patch in the series and so I was waiting for
a reposting that never happened. Looking back I think the debate
was curriously enough whether it made sense ot have the platform_data
support in there or not.
Did anyone every take any of that series? Which tree did you base these on?
> ---
> drivers/iio/adc/ti_am335x_adc.c | 13 +++++--------
> 1 file changed, 5 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c
> index f258eb0..ac78672 100644
> --- a/drivers/iio/adc/ti_am335x_adc.c
> +++ b/drivers/iio/adc/ti_am335x_adc.c
> @@ -214,14 +214,11 @@ static int tiadc_probe(struct platform_device *pdev)
> node = of_get_child_by_name(node, "adc");
> if (!node)
> return -EINVAL;
> - else {
> - err = of_property_read_u32(node,
> - "ti,adc-channels", &val32);
> - if (err < 0)
> - goto err_free_device;
> - else
> - adc_dev->channels = val32;
> - }
> + err = of_property_read_u32(node,
> + "ti,adc-channels", &val32);
> + if (err < 0)
> + goto err_free_device;
> + adc_dev->channels = val32;
> }
>
> indio_dev->dev.parent = &pdev->dev;
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 4/7] iio/ti_am335x_adc: remove the else case
2013-05-22 21:55 ` Jonathan Cameron
@ 2013-05-31 7:43 ` Sebastian Andrzej Siewior
0 siblings, 0 replies; 10+ messages in thread
From: Sebastian Andrzej Siewior @ 2013-05-31 7:43 UTC (permalink / raw)
To: Jonathan Cameron
Cc: linux-iio, linux-input, Jonathan Cameron, Dmitry Torokhov,
Samuel Ortiz, Felipe Balbi, Patil Rachna
On 05/22/2013 11:55 PM, Jonathan Cameron wrote:
> Did anyone every take any of that series? Which tree did you base these on?
I am very sorry for not replying earlier, I somehow overlooked your
email until now. Saying that I assumed that the series I relied on was
merged. Later I've been told that this is not the case and I rebased
everything on top of v3.10-rc3. So please ignore this series, there are
two new :)
Sebastian
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-05-31 7:43 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-22 21:08 [PATCH 1/7] input/ti_am_335x_tsc: remove the else case Sebastian Andrzej Siewior
2013-05-22 21:08 ` [PATCH 5/7] iio/ti_am335x_adc: remove platform_data support Sebastian Andrzej Siewior
[not found] ` <1369256897-25984-1-git-send-email-bigeasy-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2013-05-22 21:08 ` [PATCH 2/7] input/ti_am33x_tsc: " Sebastian Andrzej Siewior
2013-05-22 21:08 ` [PATCH 3/7] input/i_am335x_tsc: removed unused variable in titsc_irq() Sebastian Andrzej Siewior
2013-05-22 21:44 ` Jonathan Cameron
2013-05-22 21:08 ` [PATCH 4/7] iio/ti_am335x_adc: remove the else case Sebastian Andrzej Siewior
2013-05-22 21:55 ` Jonathan Cameron
2013-05-31 7:43 ` Sebastian Andrzej Siewior
2013-05-22 21:08 ` [PATCH 6/7] mfd/ti_am335x_tscadc: remove platform_data support Sebastian Andrzej Siewior
2013-05-22 21:08 ` [PATCH 7/7] Documentation/DT bindings: add info for TI TSC ADC Sebastian Andrzej Siewior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).