From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Henrik Rydberg" Subject: Re: [PATCH v2 06/11] HID: hid-multitouch: support T and C for win8 devices Date: Wed, 31 Oct 2012 19:47:50 +0100 Message-ID: <20121031184750.GA1740@polaris.bitmath.org> References: <1351241067-9521-1-git-send-email-benjamin.tissoires@gmail.com> <1351241067-9521-7-git-send-email-benjamin.tissoires@gmail.com> <20121029220058.GB15413@polaris.bitmath.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from smtprelay-h22.telenor.se ([195.54.99.197]:46041 "EHLO smtprelay-h22.telenor.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753210Ab2JaSnG (ORCPT ); Wed, 31 Oct 2012 14:43:06 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Benjamin Tissoires Cc: Dmitry Torokhov , Jiri Kosina , Stephane Chatty , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org > >> + usage_index) { > >> + hid_map_usage(hi, usage, bit, max, > >> + EV_ABS, ABS_MT_TOOL_X); > >> + set_abs(hi->input, ABS_MT_TOOL_X, field, > >> + cls->sn_move); > >> + } else { > >> + hid_map_usage(hi, usage, bit, max, > >> EV_ABS, ABS_MT_POSITION_X); > >> - set_abs(hi->input, ABS_MT_POSITION_X, field, > >> - cls->sn_move); > >> + set_abs(hi->input, ABS_MT_POSITION_X, field, > >> + cls->sn_move); > >> + } > >> + > > > > Do we really want to do the latter several times, even if the device is not a win8 one? > > I don't get your point here. The only difference with the previous > release is that it will treat differently the first in the array than > the others. For non win8 devices, there is no changes in the behavior. > Could you elaborate a little bit more, please? I was wondering what we want to do about multiple reports in the general casel. Not that important though, the patch will probably look fine in your next version. Thanks, Henrik