Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2013160lqe; Tue, 9 Apr 2024 07:19:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBDWg2srV3yC+IcsMxd2AMP7JKf2i/86LgD+TeiVJcDJYn39vPToKQ1rdWiz1nExX7hzzZxC9UHl+98li2AVIdlYwVnA0v8j8TTmn5yw== X-Google-Smtp-Source: AGHT+IEHfubcyACjH/cv5xTtX4rw1YKUwH0XxT5nB5hnk5b0RSoGh6oQYP/WTU1JBrGA0iJHKuVz X-Received: by 2002:a17:907:20f7:b0:a51:c957:a613 with SMTP id rh23-20020a17090720f700b00a51c957a613mr2397047ejb.10.1712672346893; Tue, 09 Apr 2024 07:19:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712672346; cv=pass; d=google.com; s=arc-20160816; b=Ys8JlBOPzElDvuoO6kX1RtSvIM2l6l3D6I0x/A6fqN8/9la6G0ZKnP86vNrJaQTlun ZzfxZJyXxsLaw9dNJK6qj+bjWpqFPJgVmAs3ZPKvXyuaWdoAD+6ZVtjVxUXsBT+oB/QO CfPOkeeBn0OL3reXKvvoSeajP5x2snbPWfiqWbD2n43gzMo7hGlXJJ0HyWpeB60S8Y3v RGWKwLLQiJ2AAlisHNtZDy7ibIPCqf5z9CBPTNe4xNmU/m2mj1l01WD4w/xI3NfHC7K6 2KBEXWYvpHsa+7laFXMXiQu5DGi9gK3NNDsXZ9MNTtjuJ8mM2EqgyRlUwnGY2kcp5bFF GPIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=eMkcUK06qPDLhvDjE1B8TO+83at8akeI50jFFu8wgFs=; fh=P4rs9xZiLYgzgwFpHBeF7cEbMOePIzb8F4HUpcEbXkE=; b=t7Gvi+5JMyvgaeMsUVxM8wv2JHdZJalBaCCYKmLcICpUg6gKghLmEP13fGK2g7cM1Q 4NHi8TLYl1Qb8GqvouJTTbyKmP0UXTUykKwQoVOMZ5g0Hee15fY+FMQkwQxPx4YrA4Ja IN8XELy9c6EwjTakej83axMj3ZOLrzgugvdZGeynXBk00lhL59wvnPjn+qKGuWN1+gd3 o30+rsmDJUqPi42rS58d9KyHiOsqFM0HTXPQsCU4syoWC2IiyWeiMj/RbV8BfJ6jrCV5 tGqSGOoJfyKzpJuVkih4n83hak5hH9GNk4fHTg1RhENf58kaL77syjLcVbYxcluaCaZe gutw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=Tylx6pbp; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-6027-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6027-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s21-20020a170906455500b00a51e2a7d6ebsi1275144ejq.402.2024.04.09.07.19.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 07:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6027-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=Tylx6pbp; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-6027-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6027-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 84A381F22786 for ; Tue, 9 Apr 2024 14:19:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DEA812FB36; Tue, 9 Apr 2024 14:19:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="Tylx6pbp" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FD0212FB1D for ; Tue, 9 Apr 2024 14:18:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672340; cv=none; b=B2eNv7foEMHgQIAUyJzmmGCnXQ8Z+a/eG39+mP9bBNLenvnyihgeD/gCPXqbCbhKhltqvRL25EziuWBo0Palm+Rd6QA9Y9GX66hIzD+J19Y6RhxKrG8DbB1m3BVCR9/h/GnHQFOWQEoLfFMmQ41wCSVmir+C8lmJby8buLieoBY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672340; c=relaxed/simple; bh=eMkcUK06qPDLhvDjE1B8TO+83at8akeI50jFFu8wgFs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SipE96VAsVHVV9MhAXcP2Dr21ekF5Npb7MqvQ1/ZVxVA+SAoJ/NLgTRbE/nUQpFLkwOTApU5KqtXh2UDo5xv+qCyjh1C/CdrE2t3AhB6CS2rP7H/S1Enezck52zLpNLv1/AJdA+O7AA9JtuRjGRzbytCEV4QILmNoSJDc8eepUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=Tylx6pbp; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-516c403c2e4so4890889e87.0 for ; Tue, 09 Apr 2024 07:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1712672337; x=1713277137; 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=eMkcUK06qPDLhvDjE1B8TO+83at8akeI50jFFu8wgFs=; b=Tylx6pbpY2xl9S4Uug2sBtxxWyg21j7S0VZ0vtLiy6WNFG0rrXi8QAb4oLTWwLhTmT 6d+DuRiFDTb09d0WXKDthDoQqnkn8OP21m1w3pdz6jr+/O7jzc1gVOrygkiuc4Pbv0z3 UU4kDaBCD3h6a55IMGx6L2DaG4pox1iyol4XaxZaXpR7xR7ENSXJ/HlsLn4g3C/s3amF IgCn/lw/xotid3jOY3z/OFXi4zy32MyXlERWqBkyNSqQHBRp0ywQvJi0tR7THhLf2km0 5sUL3NC3Uma2TqA9YH/ELeDvf++INZlr/SUQADgv2qASmk8OXa9ZSKUBlMGeiz3HqOKh JxRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712672337; x=1713277137; 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=eMkcUK06qPDLhvDjE1B8TO+83at8akeI50jFFu8wgFs=; b=NbYugOZK8o+zgrmWEl8arQTLU6AJVgS5JeNYzZSTroDmv+AjUAJFQpO3tco5Drxmn8 rXsLbfvNF1UpmU97clZxjL1beJ64ml66ZCwtir8vc2LfLu3KLsKzZ2Ozbznhov/xcfIL X8L4GBv9bMzTj2zqc89q/ThEVXbPiQNNrovD82J5+AiDdOGvcSm322vh5yeuJvA67FPU ujfAEfmXKBaENsMTqlXE4N+fCKaiY6ZtsuzinwfqaNndCA2BB0Ec+wHRVaZyBFSv0siX vEobVRz/Q6xGrRBracu9MioH8hF5GsUZzWMDqPKmt/EuIY0HTAz5jaZlIq+H3Tqa01Xu HbIw== X-Forwarded-Encrypted: i=1; AJvYcCUKQuF4TDt1wTywCmVFKiChedP2wROB3kK6Wi87ptlmQbhSoj+LAa8WTgQJ4TL4GD/G5fpg4yuO/MQgSpxj7eu3k8qrcjG9c9mCJudKC0s= X-Gm-Message-State: AOJu0Yy3Vni/+QTv2iOzO9djpj2ZxY+3P96APKNY6NTCitsRn+lE6jbT YJ7smIg3+3J/YKtl1Cj3kH3JgaRLzXMiUaMYmWTL91+amupo4tv6w9BHE4bhoTlf33aLozudLVR zvZzRgZF0OExbverqmHcHegHaDFISf8+RyASQYA== X-Received: by 2002:a05:6512:36cb:b0:513:df5f:38cd with SMTP id e11-20020a05651236cb00b00513df5f38cdmr932555lfs.4.1712672337514; Tue, 09 Apr 2024 07:18:57 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240408231727.396452-1-andriy.shevchenko@linux.intel.com> <20240408231727.396452-3-andriy.shevchenko@linux.intel.com> In-Reply-To: From: Bartosz Golaszewski Date: Tue, 9 Apr 2024 16:18:46 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] gpiolib: Update the kernel documentation - add Return sections To: Andy Shevchenko Cc: Bartosz Golaszewski , Kent Gibson , Linus Walleij , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, Mika Westerberg , Arend van Spriel , Kalle Valo , Charles Keepax , Randy Dunlap Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 9, 2024 at 4:06=E2=80=AFPM Andy Shevchenko wrote: > > On Tue, Apr 09, 2024 at 04:01:43PM +0200, Bartosz Golaszewski wrote: > > On Tue, Apr 9, 2024 at 2:52=E2=80=AFPM Andy Shevchenko > > wrote: > > > > > > On Tue, Apr 09, 2024 at 02:12:51AM +0300, Andy Shevchenko wrote: > > > > $ scripts/kernel-doc -v -none -Wall drivers/gpio/gpiolib* 2>&1 | gr= ep -w warning | wc -l > > > > 67 > > > > > > > > Fix these by adding Return sections. While at it, make sure all of > > > > Return sections use the same style. > > > > > > Since there shouldn't be hard dependency to the first one, can you co= nsider > > > applying this one, so it unblocks me? > > > > I'm not sure what the resolution is for % and HTML tags in the e= nd? > > Most of the constants are without %, so less churn now is to drop %. > If you think otherwise, please, fix it and I will rebase my patches later= . > I'm not sure I get the logic of it. If the kernel-wide standard is to use %, then we should work towards using it across the GPIO code even if we do it a few lines at a time instead of going backwards just for consistency in drivers/gpio/, no? We don't need to fix everything now but if you're touching this code, then I'd go with %. Also: what about the s/error-code/error code/g issue? While we should always say "active-low", I think error code looks better as two words. Bart