Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6027975rdb; Thu, 14 Dec 2023 06:36:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IH62caJJibmqo0MvclH0rq6Ma8L8Bgd/9+6rjc4/RLz/MkSzZUXeDrLpp79aEcboKAqAmli X-Received: by 2002:a05:6e02:144d:b0:35d:5f75:3651 with SMTP id p13-20020a056e02144d00b0035d5f753651mr16532706ilo.51.1702564591261; Thu, 14 Dec 2023 06:36:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702564591; cv=none; d=google.com; s=arc-20160816; b=dAXeoSqjdqri4xDkh6CZh4XvQfW8YNVMb7gHLMHvvfkve/NJfFC/jZNCTSZS28IlZ9 YGWf+JvIV0TebeaYKLXtARGBnvoCkUrDXzN1HJUk333r/LcwP0sz/IbOfQFtItlWTyxZ YXXElzc5OrWT661h32YGC06ma3dIugB+zJ+Be06rnhKg70xlra109+r/qdruomg/nsu3 5hBZ0uMLb64jAo8jhXarIW1NbScBnGJfnN8CUFD6wk8eQjaA8E2Qib5lVTN9dg+FWm67 nsJNnz3caw2CCdYIFnEH4fU0cNKu5qu6WcEDxQlIu/xwGKpduLDYA6ZMNRoalm8gD9kG gGEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=R8J2+jZoSvDsEmF2PFVivOWGrs+4+0LBwbm6osKsnsg=; fh=gWgQkwRx1pRN6B0a6aHplanYDEUMdd1fFwHIg8IIY4Q=; b=e/3Y5x0H6YGiEYmnixSvask10EfwWWfBRpB6TMownr0Zbvbd1o1jsa79XnJ9zuAgzx I321va/5jaKKGvXjeKcm3TiovllJcM2SQl+WmAJcXYb/pX5wO6SdVbqciQa8NbpA2v0P OUHWsWO9OxT9RYawjHeNbia88q1/rTLF5Jeh65TRYR5MZ8Auer4b7rotzMTbZaCAeWcp 0MXFRUMwLldX/o/q6nKpZt9z3TBATQoOxBtjxrZFpGgzcOa3Jf7LoUzyBLLsP+nIuZxu 87OBx6qQoXREkGAB69zu+CF726zKm5jeyz6O0nImCGt9iuVlIxAKqSEKGLgK6X0nDTQc WMVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id z2-20020a63c042000000b005b8ef498e2fsi11404601pgi.181.2023.12.14.06.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 06:36:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id DEA00807D3D0; Thu, 14 Dec 2023 06:35:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573494AbjLNOfI (ORCPT + 99 others); Thu, 14 Dec 2023 09:35:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573453AbjLNOfH (ORCPT ); Thu, 14 Dec 2023 09:35:07 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 759D1A7; Thu, 14 Dec 2023 06:35:14 -0800 (PST) X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="394873872" X-IronPort-AV: E=Sophos;i="6.04,275,1695711600"; d="scan'208";a="394873872" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2023 06:35:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="918076811" X-IronPort-AV: E=Sophos;i="6.04,275,1695711600"; d="scan'208";a="918076811" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga001.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2023 06:35:12 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rDmnu-00000005rsw-18w9; Thu, 14 Dec 2023 16:35:10 +0200 Date: Thu, 14 Dec 2023 16:35:09 +0200 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Kent Gibson , 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.0 required=5.0 tests=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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 14 Dec 2023 06:35:22 -0800 (PST) On Thu, Dec 14, 2023 at 10:40:26AM +0100, Bartosz Golaszewski wrote: > On Thu, Dec 14, 2023 at 3:15 AM 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. I agree with Bart, make it plain comment if needed. -- With Best Regards, Andy Shevchenko