Re: [Linuxwacom-devel] [PATCH] Make sibling device name matching slightly more lenient

2017-02-09 Thread Peter Hutterer
On Thu, Feb 09, 2017 at 04:10:49PM -0800, Ping Cheng wrote: > On Wednesday, February 8, 2017, Peter Hutterer > wrote: > > > On Mon, Feb 06, 2017 at 05:36:21PM -0800, Ping Cheng wrote: > > > The wcmIsSiblingDevice function uses several tricks to try and determine > > >

Re: [Linuxwacom-devel] [PATCH] Make sibling device name matching slightly more lenient

2017-02-09 Thread Ping Cheng
On Wednesday, February 8, 2017, Peter Hutterer wrote: > On Mon, Feb 06, 2017 at 05:36:21PM -0800, Ping Cheng wrote: > > The wcmIsSiblingDevice function uses several tricks to try and determine > > if two devices should be considered siblings. If its 'logical_only' > >

Re: [Linuxwacom-devel] [PATCH] Make sibling device name matching slightly more lenient

2017-02-08 Thread Peter Hutterer
On Mon, Feb 06, 2017 at 05:36:21PM -0800, Ping Cheng wrote: > The wcmIsSiblingDevice function uses several tricks to try and determine > if two devices should be considered siblings. If its 'logical_only' > parameter is false, this includes comparing device names. Device name > comparison is

[Linuxwacom-devel] [PATCH] Make sibling device name matching slightly more lenient

2017-02-06 Thread Ping Cheng
The wcmIsSiblingDevice function uses several tricks to try and determine if two devices should be considered siblings. If its 'logical_only' parameter is false, this includes comparing device names. Device name comparison is complicated by the fact that suffixes are added on by the X and kernel