Re: Support for additional properties in touchscreen.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 14, 2017 at 08:55:01AM +0100, Gregor Riepl wrote:
> > The fuzz (smoothing the output coordinates) is done in input core and
> > the touchscreen properties parsing code already handles
> > touchscreen-fuzz-x and touchscreen-fuzz-y parameters. The only thing
> > that is needed is to pass these parameters through DT or ACPI or
> > static properties, based on particular device.
> 
> Thanks for the clarification, Dmitry.
> 
> So do I understand correctly that it would suffice to add these parameters to
> a DMI match in drivers/platform/x86/silead_dmi.c ?
> 
> Something like:
> 
> static const struct property_entry my_imaginary_tablet_props[] = {
> 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
> 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1080),
> 	PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 10),
> 	PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 10),
> 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-my-imaginary-tablet.fw"),
> 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
> 	{ }
> };

Yes, and you'd need to add a new entry to silead_ts_dmi_table.

Thanks.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux