From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59C5C1428E2; Fri, 12 Jul 2024 07:29:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720769356; cv=none; b=JNGk+EHccjFx9jsdMmUo7z862+RJQgPS/EjtEdyUNH23vlmtBGZ13Zxn4UqJK/N6wLeHx3A2WJPQurGKM2R8YF1LSaYnpZPEnOJ1021QFQU18cQwcshGtP5+yN8QMGVMZSLsrbpsUjnJhhj6sP7P0Wnb6suyDfBuE2S8cqq8fIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720769356; c=relaxed/simple; bh=kN4cgTXrqq6pQRmoyzsUWkSwEjdVG9DE5X0WhR4ep+c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hRfm6pEICDVUh5vKmI4hrIiSuO6EfmPRQ0oUs0nHdMymWgEg07nNd2l7SfPaDksQ0ze5HV6Iif14dV+bssw3vsjqnvxfWUQByb/jxC2XJUwHtRMp9ZLG7/vwjNZrFGsVjbtXVkEjdNk9C2Nyr4MbRGcGScE7JcS6eE+kmX2KL84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c2j44Jk5; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="c2j44Jk5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EC04C3277B; Fri, 12 Jul 2024 07:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720769356; bh=kN4cgTXrqq6pQRmoyzsUWkSwEjdVG9DE5X0WhR4ep+c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c2j44Jk5WmJt9YpSo8DOHTnyzqeq/WBe5drPUoYnj/6+Ln9SgsRXErKfGuqLOBOJ9 P71CqrY1loSDrW9JGPYcnPl9WPPLYUOhZyMov6i8TU8/gusAsk6CM12s+y9dhaZxas rtzacb6MfyuKAYugrRPtC0NtDTdh0w5LdMPPnego= Date: Fri, 12 Jul 2024 09:29:13 +0200 From: Greg KH To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/8] Input: usbtouchscreen - move process_pkt() into main device structure Message-ID: <2024071209-boondocks-synthetic-aa04@gregkh> References: <20240712051851.3463657-1-dmitry.torokhov@gmail.com> <20240712051851.3463657-4-dmitry.torokhov@gmail.com> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240712051851.3463657-4-dmitry.torokhov@gmail.com> On Thu, Jul 11, 2024 at 10:18:46PM -0700, Dmitry Torokhov wrote: > In preparation of splitting big usbtouch_dev_info table into separate > per-protocol structures and constifying them move process_pkt() from the > device info into main drvice structure and set it up in probe(). > We can derive if we should use single- or multi-packet handling based > on presence of get_pkt_len() method. > > Signed-off-by: Dmitry Torokhov Reviewed-by: Greg Kroah-Hartman