On Fri, Aug 28, 2020 at 10:19:55AM +0800, Johnny Chuang wrote: > This patch adds a new behavior to report touch major resolution > based on information provided by firmware. > > In initial process, driver acquires touch information from touch ic. > It contains one byte about the resolution value of ABS_MT_TOUCH_MAJOR. > Touch driver will report touch major resolution by this information. > > Signed-off-by: Johnny Chuang <johnny.chuang.emc@xxxxxxxxx> > --- > Changes in v2: > - register a real resolution value from firmware, > instead of hardcoding resolution value as 1 by flag. > Changes in v3: > - modify git log message from flag to real value. > - modify driver comment from flag to real value. > --- > drivers/input/touchscreen/elants_i2c.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/input/touchscreen/elants_i2c.c b/drivers/input/touchscreen/elants_i2c.c > index b0bd5bb..661a3ee 100644 > --- a/drivers/input/touchscreen/elants_i2c.c > +++ b/drivers/input/touchscreen/elants_i2c.c > @@ -151,6 +151,7 @@ struct elants_data { > > bool wake_irq_enabled; > bool keep_power_in_suspend; > + u8 report_major_resolution; I renamed this to "major_res" to match x_res and y_res, and applied. Thanks. -- Dmitry