Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5717825rdb; Wed, 13 Dec 2023 18:16:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvnWruDvk438pvf52gXB5vBl9HjFv+Z1MnphnjP6aavXMV4M3KK81DvNuiCnBRu56IsiVW X-Received: by 2002:a05:6a20:914f:b0:190:37a0:f343 with SMTP id x15-20020a056a20914f00b0019037a0f343mr12747715pzc.34.1702520188150; Wed, 13 Dec 2023 18:16:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702520188; cv=none; d=google.com; s=arc-20160816; b=Zy0NsyE64dAPlBrnUUTXSyr9UutltIMaEkegnaSh5MqGqMveOt3hZe8JuEE7xrcQND aGjFtAnTz/StZijp3c+NWXg5HG1HK1MoWGvzOgYx59h9KlEoMH19pd6yufGJ02Jw1i7Y IfsSCRMDxBuKvs40oF6ai9jeXIUxyRk2cRhghLktOqUme2TF5TtzarsaLSM+a+REWVM6 uUF1wmwgZF05f3mcZfAALvEIdOlpba3elM0ChZGfQLdIpKlhkmY4I43JUN29QeRIoejn sNTG8a6Ejo2uuMZliRBBUkiPkOoRlAXMPO8WsZKWsq89JDstkdEpx/HbuzwOB1RYLLIg 4jRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KYkhYurevqXmt9TKAHgTIcFGz3zu27+21cyUYElhhEw=; fh=eSrUUslOd6CJlKUSvV8UZ9JOnpfK2uSs5IKW8QrPdiA=; b=lNb9jchmEcpDaLHf9Te//MkZ38opqc9Wx2NWE0/7W/BneU7I5cvAEoeeSlDc3q8nYc 4yL+cUyoApcUdU6kllpNaDnx/ZosKmDrrkP1k8BXtxacToK+Cg/fwcQ2tUBSQTM0Cpel Gye4FQYjRYA5p+zwMmrvJ9/uQfpHSOaDjL7L8rXsMKBfgQa8AtNxrXAYqc0kjz0/SFgv tcVoqChnVY71zKhUmjxg4UEotXM0PiZFEFfZYpGe5tgIU9wEvc2LM1Iv10GzSAJVt9J8 Nzu4jinFIGaF/318I4GestSWaD2fCNTO7gPvDvl4sKVI0VvJDbrnwCXXSoHY53/Zn18X hYGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YHhJhvtC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id u10-20020a056a00124a00b006ce0cc37e50si10588324pfi.335.2023.12.13.18.16.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 18:16:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YHhJhvtC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7D2E0807AFFD; Wed, 13 Dec 2023 18:15:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234093AbjLNCPO (ORCPT + 99 others); Wed, 13 Dec 2023 21:15:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbjLNCPN (ORCPT ); Wed, 13 Dec 2023 21:15:13 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14A0CE3; Wed, 13 Dec 2023 18:15:20 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-28a5d0ebf1fso134941a91.0; Wed, 13 Dec 2023 18:15:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702520119; x=1703124919; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KYkhYurevqXmt9TKAHgTIcFGz3zu27+21cyUYElhhEw=; b=YHhJhvtCfCiYewBcC5dko4tCmxEOx8ZjAPhHYNUIp6v5bETwmk5JwkEP/J1isaDLIC 3hsIZKd4s8JAJpVTtGFzzTmf7Po73vPWFUkQ9FzjT9xOB0gP0oXjyO5xfCk/hcz+ku0+ T6PQCCPvBXd1uYuVZhEm4vkhlEQSF8vfiGHY2DIhTtmbx7TndJQkZfnHRorbBvCDkovz iKo2KydInvZ0kV5t+AEB93V6T4OZgk3BjvsDuGz9EP4LM5MhM2qINoy2S/A2hYZemkRi 5KVyUss/gGc5PhH9Ei/40z+AlQvfKSsqs3zKhc7sMlCLjqu08s3nz4Q4MeFw9IczkCoE oMIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702520119; x=1703124919; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KYkhYurevqXmt9TKAHgTIcFGz3zu27+21cyUYElhhEw=; b=tpekKim8uwsHtE1sz2moRDJDvsgcbuK1gMW7uNRPdrNP5hO4YxLiiO5xYdruU22F/G /V7H07k3sINQXvW3OW+h/RfphJgXMZcbSnONMbrxywfM6T3J+xD3IXOxr1Wlkntr0auq KeMHmlVXCLkPE+5zTseI9QR7SFhpxjC2iuMl0b3QjZFqpYIWKdx2tunHR2G4xPO+kELV xYRYh0yOaWU4Yz35dEzSPYtCn/tpgfLejGai7HHxyA4GC2OIWhtKgj4+vlhqXIxGS3wz vy3FBYJwf0c5BdVnnIxwr0juhupHekiy1PBr4YJAXGVEcE6s72/utKxh/+8cw2f77sCq h7lQ== X-Gm-Message-State: AOJu0Yz4Z+CWfvB4CQIlS9WhV6TTBvNSwCXhnalkz/RYYY7j/cH0L7lY rjhP6+Yd3zji4xHWDmJ6mTHGcUqWqxA= X-Received: by 2002:a17:90b:33cb:b0:286:7529:3598 with SMTP id lk11-20020a17090b33cb00b0028675293598mr11322651pjb.13.1702520119225; Wed, 13 Dec 2023 18:15:19 -0800 (PST) Received: from rigel (60-241-235-125.tpgi.com.au. [60.241.235.125]) by smtp.gmail.com with ESMTPSA id d8-20020a17090ab30800b0028591079e6fsm13203507pjr.24.2023.12.13.18.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 18:15:18 -0800 (PST) Date: Thu, 14 Dec 2023 10:15:13 +0800 From: Kent Gibson To: Andy Shevchenko , Bartosz Golaszewski Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linus.walleij@linaro.org Subject: Re: [PATCH 1/4] gpiolib: cdev: relocate debounce_period_us from struct gpio_desc Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 18:15:28 -0800 (PST) On Thu, Dec 14, 2023 at 08:18:01AM +0800, Kent Gibson wrote: > On Wed, Dec 13, 2023 at 10:07:12PM +0200, Andy Shevchenko wrote: > > On Wed, Dec 13, 2023 at 08:03:44PM +0100, Bartosz Golaszewski wrote: > > > > ... > > > > > > - it adds complications for no benefit > > It provides a placeholder for collective documentation and clarifies > scope for the reader. Turns out kernel-doc can't deal with a struct variable declaration - it needs the struct to be named. So this doesn't parse: static struct { struct rb_root tree; spinlock_t lock; } supinfo; but this does: static struct supinfo { struct rb_root tree; spinlock_t lock; } supinfo; at which point I prefer the separate struct and var declarations as per the patch. Opinions? Cheers, Kent.