Skip to content

tsc2005 cleanup

Sebastian Reichel linux-input linux-omap lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Input: tsc2005 - improve readability of register definesdrivers/input/touchscreen/tsc2005.c+18 -100 replies
2/5Input: tsc2005 - fix Kconfig indentationdrivers/input/touchscreen/Kconfig+4 -40 replies
3/5Input: tsc2005 - convert to regmapdrivers/input/touchscreen/Kconfig drivers/input/touchscreen/tsc2005.c+60 -1120 replies
4/5Input: tsc2005 - simplify drvdata acquisitiondrivers/input/touchscreen/tsc2005.c+6 -100 replies
5/5Input: tsc2005 - convert to gpioddrivers/input/touchscreen/tsc2005.c+18 -291 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] [input] tsc2005 cleanup

Hi,

The following patches simplify and cleanup the tsc2005 touchscreen driver. Apart from making the driver more readable, the direct usage of SPI has been reduced to one function, so that tsc2004 support may be addable now (see [0]).

Changes since PATCHv1 [1]:
* Avoid mixing spi_*_drvdata() and dev_*_drvdata() by converting all spi_*_drvdata() to dev_*_drvdata()
* Add new patch fixing the indent of TSC2005's Kconfig entry
* Select REGMAP_SPI in TSC2005's Kconfig entry
* Use optional gpiod and regulator API, so that the DT check can be removed
* Set TSC2005_REG_PND0 on regmap writes, since it has also been used before the regmap conversion.

[0] http://permalink.gmane.org/gmane.linux.kernel.input/37513
[1] https://lkml.org/lkml/2015/7/15/500

-- Sebastian

Sebastian Reichel (5):
Input: tsc2005 - improve readability of register defines
Input: tsc2005 - fix Kconfig indentation
Input: tsc2005 - convert to regmap
Input: tsc2005 - simplify drvdata acquisition
Input: tsc2005 - convert to gpiod

 drivers/input/touchscreen/Kconfig   |   9 +-
 drivers/input/touchscreen/tsc2005.c | 262 ++++++++++++++----------------------
 2 files changed, 106 insertions(+), 165 deletions(-)
Signature · 1 line
2.1.4