[PATCH v7] Touchscreen driver for FT5x06 based EDT displays
From: <hidden>
Date: 2012-07-01 20:36:57
Hi all.
This is a new iteration of the driver for the edt ft5x06 based
polytouch series of touchscreens.
This version moves the raw data stuff into debugfs, ratelimits messages
in the irq handler, adds error checking for mt_init_slots, adds the
crc check for the touch data and allows for picking up the defaults
from the board file. (There is an extra variable in there allowing to skip
this and use the defaults from the sensor. This is necessary, since for
some values 0 is a valid value and I don't want to have unspecified
values in the platform data suddenly become defaults...)
I also slightly trimmed some function names making the driver a bit easier
on the eyes... :)
Note that the dev_err_ratelimited() used for ratelimiting is not available
in some earlier kernels. You can work around this by adding the following
code to the beginning of the driver:
#ifndef dev_err_ratelimited
#define dev_level_ratelimited(dev_level, dev, fmt, ...)
do { \
static DEFINE_RATELIMIT_STATE(_rs, \
DEFAULT_RATELIMIT_INTERVAL, \
DEFAULT_RATELIMIT_BURST); \
if (__ratelimit(&_rs)) \
dev_level(dev, fmt, ##__VA_ARGS__); \
} while (0)
#define dev_err_ratelimited(dev, fmt, ...) \
dev_level_ratelimited(dev_err, dev, fmt, ##__VA_ARGS__)
#endif
Please give feedback on problems or on further plans for inclusion into
mainline.
Thanks,
Simon