Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4205617rwi; Mon, 17 Oct 2022 03:06:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7HPPUhs3ugJN7oAdvV6SLS4kNcjji0R6CSgt6rstHbXLSeEk4ZRM1GRuOldCDQWJcUO2jD X-Received: by 2002:a17:907:761b:b0:78d:4990:3f3e with SMTP id jx27-20020a170907761b00b0078d49903f3emr7931709ejc.228.1666001170203; Mon, 17 Oct 2022 03:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666001170; cv=none; d=google.com; s=arc-20160816; b=0Of7bhUD2BSYcSjwfc4gnvXNwYvqVAANEYobVMaZ9n46O6mNJ0ImGd1QMY6YBRta8H zHXaWGaDd79MZOIn9pTUGviRkvZI7EfX9wQ4/QufiLjdHqlWFczqYIIMcqNisJwZ8xgO 0AMx6uuDKR8ikNvj/7MULvfLFCOt+XWgRDQtowBGIpT1wklgWfcXLBKu4KtZKXKBj5vr a5o6YZmLVYXtsr6jy1UYPfhVw51BT7uPwBXKq/mvS0jahDimMqUh6js8ICPzNqqfjgj5 khhE1Rnv2jO70ABuSxe+kQIcPGpvb6Bz/fInulXz7pmj/MndabOtLsN9UsUkKziWaI1t arpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=eqG+FnY6cgw2Y7pCQVtHWPTcq9pUdNMukJJetYXzLCw=; b=Wz0aoAoemWyNpRcrpS3D8FAG00LA8oqRvtTOoW2S7m9yR+Vjx3fVGsfQaiOPVZLSFB 3ixu2LQ1jnIsjY5RcX7OZes+cqS03szBLwO5jQmYaLhA0XsTXSLA8ADOdfTgSqlymSEW P986koJ46wHIIoI+ULC+zy6LBk6kLUgUQ4//4ZOYF4VDI/N3b6djtE1/rCc+SQvciq+H Rk5y/+7bcP5lpQnz7C61rmFPDARYUu4HOodvq2ylglPY5X/1RkmP+wKxsxnKJ5CDx/Rg ZFlrOln/ZNT02T9UwASHk8sNdvSQ/4DgDKoANRD9elpK0k0/j7A74dzXU/9YNGQHUItA XCKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@noorman.info header.s=MBO0001 header.b=Jiyoawga; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=noorman.info Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg16-20020a170907a41000b0078dd12d0a9fsi8219544ejc.548.2022.10.17.03.05.43; Mon, 17 Oct 2022 03:06:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@noorman.info header.s=MBO0001 header.b=Jiyoawga; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=noorman.info Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230024AbiJQJ0Q (ORCPT + 99 others); Mon, 17 Oct 2022 05:26:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbiJQJ0K (ORCPT ); Mon, 17 Oct 2022 05:26:10 -0400 Received: from mout-y-209.mailbox.org (mout-y-209.mailbox.org [IPv6:2001:67c:2050:103:465::209]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21CCB1572E; Mon, 17 Oct 2022 02:26:03 -0700 (PDT) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-y-209.mailbox.org (Postfix) with ESMTPS id 4MrWng1gwgz9tcv; Mon, 17 Oct 2022 11:25:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noorman.info; s=MBO0001; t=1665998759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eqG+FnY6cgw2Y7pCQVtHWPTcq9pUdNMukJJetYXzLCw=; b=Jiyoawga2QgnFZvz0FlLSxSiCwExRZ5QZtx4aPU/wUs8axLDU0G2fE940CtTyFlIJjp9gt UIV6nfSsGHC5qIl7mk6UC5dvOZsx/XRqOO+yPD6stc0w509ukfRUQgpnKeSnOhXcgLg8ep r/C9Iy6EZNovrTtVZbwitC3M3zgS7sZfofqwyix3J1qnW3KCYpJDm8fIiLkO93Q/eeWUmI 3L887kT1LxDZz+KTlq6IrhlAaOfQRwgxnwQVsdf3OffL1DJufU+OdnP5ZLbWqj7nVd9AKQ okDTG0I5Jllknc957rsrov3EpyPh4eGtEtH+wjSs2FkEPWi5panZvJUuLEwcWA== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 17 Oct 2022 11:25:57 +0200 Message-Id: Cc: "Henrik Rydberg" , "Luca Weiss" , , Subject: Re: [PATCH v3 2/3] Input: add driver for Himax hx83112b touchscreen devices From: "Job Noorman" To: "Dmitry Torokhov" References: <20221016102756.40345-1-job@noorman.info> <20221016102756.40345-3-job@noorman.info> In-Reply-To: X-Rspamd-Queue-Id: 4MrWng1gwgz9tcv X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, Thanks for your review! I've addressed all your comments and will send an update momentarily. I just have a small reply below. On Mon Oct 17, 2022 at 6:19 AM CEST, Dmitry Torokhov wrote: > > +struct himax_event { > > + struct himax_event_point points[HIMAX_MAX_POINTS]; > > + u8 majors[HIMAX_MAX_POINTS]; > > + u8 pad0[2]; > > + u8 num_points; > > + u8 pad1[2]; > > + u8 checksum_fix; > > +} __packed; > > + > > +static_assert(sizeof(struct himax_event) =3D=3D 56); > > Is this different from BUILD_BUG_ON()? Their intent is the same but BUILD_BUG_ON() cannot be used at the global scope. Hence, static_assert() is necessary here. Best regards, Job