Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5867489rdb; Thu, 14 Dec 2023 01:41:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFesC/NdemFFL5OX26R+PwBQoGnWpRzB1QG9gq2y0BQpvlGnReTduRiBFl0BAnl2U9ynu5Q X-Received: by 2002:a05:6808:ec7:b0:3b8:b063:6bba with SMTP id q7-20020a0568080ec700b003b8b0636bbamr10586977oiv.105.1702546876469; Thu, 14 Dec 2023 01:41:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702546876; cv=none; d=google.com; s=arc-20160816; b=A0cCb+MnCS8mTdT3DFRzI2ERJ22gu4DAdLhfJzLtKZQzwJxGY4z20Ao5Fo6IQ4OrQN YRbgyfwq9I02cGiwqibLce4wl7XqJQg2Pc1mmfQCfAn2ic7XFI/1/MatvtqI67RDC62t OzXzvliHm4bQ0/UdJGmf27HX1qnqmLbnubUdtXdfMfbHLWM73vF6a+PHNnrEM5gThyJr +r0d37lZ2kFFd0RorA3oTGl3u9BvYD4KseI2q1Wh8bpzx5f6duvnvb95PDwG34s2HKQ1 6zMNZQiNcRUSDG5NGtNlc4vWKvNFrq/+12+PjK7bI96VoLwy2Z7PwKeVvUUD+kN1O39n rwFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=NdaVZVYnYeQOiEs5xQZ/aME71d5T9TRS2cRXJbz9OzI=; fh=LBhGixWNRo11MyGXiSWGCjYvem55ULBjnOqEhpMVKoE=; b=QTBmyRB+BTTzVgk6Xp1zW6HuEFpl4Jv+Xwu8yRiQWRUpAnZJ3BN69rJ/1FpFAkaEut E6gmNEeV8/j+QyF3/0UYk5nEOzGSZwNANlP6YCkileumMi4qiDPx0LhhkgUrt2ldIKVD kO7rxd6RPzo3N+UoA14KU0/uLCHFXsfwkkzaxxktwYnYDVpKp1WBWV21GsH/ZzgDppjI GLWvD8rF1BGnfpKrK/Ncr4EubErPDwCZADIKENnRvQBRHi24ILNwLcs3CEl69bxc6FJR 997th6nuAsM76tPy+OvMt53mD89fZic2oe0bYUh5rwtLF27l3+APjSybmtGoSDZ8dB7m rZ0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=Z04AwDsX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id t42-20020a056a0013aa00b006ce6ad886c8si11183243pfg.177.2023.12.14.01.41.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 01:41:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=Z04AwDsX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id AC6C180A9E1C; Thu, 14 Dec 2023 01:40:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443457AbjLNJkd (ORCPT + 99 others); Thu, 14 Dec 2023 04:40:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbjLNJkd (ORCPT ); Thu, 14 Dec 2023 04:40:33 -0500 Received: from mail-ua1-x92d.google.com (mail-ua1-x92d.google.com [IPv6:2607:f8b0:4864:20::92d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ED23B7 for ; Thu, 14 Dec 2023 01:40:38 -0800 (PST) Received: by mail-ua1-x92d.google.com with SMTP id a1e0cc1a2514c-7c5cb5eeab1so2625977241.3 for ; Thu, 14 Dec 2023 01:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1702546837; x=1703151637; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NdaVZVYnYeQOiEs5xQZ/aME71d5T9TRS2cRXJbz9OzI=; b=Z04AwDsXS2DLvcErL/s5f0v5AKqhNeA20bUlFX+DuUlIZ4WVLnfKWa+q/8Kz8NG2cn pHGlQkLmw+1iE8sEBEfUZJjxM/0jZ4Y7LPHGP7qFMJzC44ixqEXkEEbNBPupr5nVeK8U ltU1ykW5HKKuJcob+PNJn0Ax889LGILAeSb7BnBrU5hEtFE+CjTjeWxMzKr6Iehj/t/Y sK/p5TJaDa9WwbyXWvVD4wz78qYXo3LFOnCxVadJ8PY4KiToHBkpsipOwJ15tgArL454 LFphXP12ZlGoAvu3bZYWroCYJg+GjqrypWfxBKAww1bKzwWi9Lg8g6nUcKrMBlM5/22S wBZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702546837; x=1703151637; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NdaVZVYnYeQOiEs5xQZ/aME71d5T9TRS2cRXJbz9OzI=; b=EM1PCEQOZWcwTaFrzHDc7qgT2e75TZFy6scfDaT2easYlWpS3ppn9YPqmGCbDgcQmw fdtyQC/hUdtR7BcGp/9F55RFOkyq080V49I8IgmzP6L47gZB8oOxE4CHZVn4+6YEA9Km GHI4i0/Am0dei4ngFpYPpQuF3hAmGO5gqEquIP2nJx29RITrBc/tYOYQzkSoxfYpG0uO lgMkc7W8vivAdOwtlJgHbdRR5NtXpSJBPrwjWMWNMps0Z298mTT486REo0oNwf5NVfTc +bb6Jp/AVeMv1ZTWIJvCxaiy6X5fy517rEn21e5ChVC89v+tbWoWIEqBP9mi2ArUId1t LIWQ== X-Gm-Message-State: AOJu0Yxb7kaSaEGiz6ccWPqN16KBUwSL9fSWmWisGdOljlJSgnDrRX5W Eq4Lv704BRRlLDCuRPwXjr8OuMJprtxRQNCt5AmFoQ== X-Received: by 2002:a05:6102:4746:b0:464:8ba6:2a66 with SMTP id ej6-20020a056102474600b004648ba62a66mr5927212vsb.31.1702546837567; Thu, 14 Dec 2023 01:40:37 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bartosz Golaszewski Date: Thu, 14 Dec 2023 10:40:26 +0100 Message-ID: Subject: Re: [PATCH 1/4] gpiolib: cdev: relocate debounce_period_us from struct gpio_desc To: Kent Gibson Cc: Andy Shevchenko , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linus.walleij@linaro.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 14 Dec 2023 01:40:48 -0800 (PST) On Thu, Dec 14, 2023 at 3:15=E2=80=AFAM Kent Gibson = wrote: > > 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? > Yeah, don't make it a kernel doc. It's a private structure, no need to expose documentation for it in docs. Just use a regular comment - say what it is and why it's here. Bart > Cheers, > Kent. >