Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp431069lqt; Mon, 18 Mar 2024 11:56:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrpa2G1njZdQ5JvKcoLytBGzkuWVCG2N+SqXGMjvk05ZVG0Q5WhU9Pd5o4gKYqr7ruCuREv4Y9CRLvGdmPFAPQ1v3qNcDnBD6cCkTRGA== X-Google-Smtp-Source: AGHT+IGaHNWdXePQ7mB2Uumleu7TQk0GesaPPOeHQRh3LlUt4P2mCTKc5XO3gJgrjUc0N58iEkuK X-Received: by 2002:a17:906:d157:b0:a45:f209:d2cb with SMTP id br23-20020a170906d15700b00a45f209d2cbmr399479ejb.28.1710788160470; Mon, 18 Mar 2024 11:56:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710788160; cv=pass; d=google.com; s=arc-20160816; b=oRedeYkMvTeHEenfuM+XB0itWP52oDoylk7hWVHT8t0Mq3hosPhExGbGTuIDZKK5us S0Mc3UbXlk/n+3W29mdcvMb8lOnuUeFW1vMHr78pqmge+B373npNft4QtZp01f9N1MgE e4spCeN0+r3zYSl6aVPornG9s0xh/UV18zMYLkt7ZuIfriT5Mavcz4aLdWNxpLG3jlz8 y1Xqf1fJMlKWnWtMEbcFcASzqqd8NBD8OSohF5ePvm3YJwu7oTAqRfqbe4f+l7LDtBKV e2dCu8mqCYe4LHJqN5A8skuipeXkn0qP+tfwjLf8rhc/eDLh+t9Le1L/aivAdavU+gpK 0CHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kyNjRBT5xemIXzabw4XFVxRi5mQdLx9CrAhoJSxjbpI=; fh=RMadNC790R7do6WEItnQGUH4rbdbtk9hVbZyZ68887g=; b=FEjE9XAOxtLHinZY3RBDsJwnoat3RaUSrA1TC9ySJjAhOj7W4zZvej2b4NtiVH8jxW Eh7lv+xCfMgk5JjLrXbJeybkuyQj41sL8Z6TnlsnVQAhRfth1MxcrEG0zKFVkgPssnv6 QgbLBnEO3/pb4WnvvaKOUst6NplXlTZGFelDqHxic3uq2JLhsngVwB5tc2KznNTgBoy7 9kAYmpgBy6zslINyzh37oZTA1ST4dj3LQw/vuHXMasjNZgKvcxxp2TnoIt+/iNtycLys +8IagjmbP7oXwPzsORF71kwLceL/XLxI0UVd9X4s3oXKZQy6Z+MEjfn8zZecXuj7Ep7q moUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="GoRAe/t5"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-106534-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106534-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 j11-20020a170906830b00b00a46caf2cdcesi685205ejx.507.2024.03.18.11.56.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 11:56:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106534-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=@linuxfoundation.org header.s=korg header.b="GoRAe/t5"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-106534-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106534-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 3605E1F224FD for ; Mon, 18 Mar 2024 18:56:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E5DA55E67; Mon, 18 Mar 2024 18:55:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="GoRAe/t5" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E3FD381C8; Mon, 18 Mar 2024 18:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710788138; cv=none; b=PGgVF+nCqpeQaX1kyg+suAn5tALq8sehGslZCGWHsyR8TbVpLQy2Ky5QS8kUb4ZREBmWet+Cydwbsszg1HdxDk3pIgnYdLPYh2p9+BWATD8pLBIjJz+oFTXf86DjfsyWNLmZdywYDbqZMyRArjWqzZd01JgionvAw7hysc9BuiU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710788138; c=relaxed/simple; bh=I81m1u3/gCGGvR+mJK7Lbsg9hTItXoG0ObMM/YWSWRg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tMXiXp8c9VNNHWFGddQcTb6aR6VDMcIdEY2piJG4dMFD9EQMqioSyK3Gt3ztEI+/oJwPJWANj7R/bP/qClyx2tcf47pQg3QGaeMAeQRC5xosb1PG2ErCNUAafflk4to+x79m5hu/R6uEX3YDvqm1eEAt+QqxDSDxW3VzlaTTcp0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GoRAe/t5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B88CEC43390; Mon, 18 Mar 2024 18:55:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1710788137; bh=I81m1u3/gCGGvR+mJK7Lbsg9hTItXoG0ObMM/YWSWRg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GoRAe/t5gnCYRr4W2+XxQic8Y6xH09gwfXPD5Ta4nNmIMvaDKSWQOqbHa8/Tq6bQu 694lYsH9NoB9QPxSl8bNuUi0DUIr67W8GxGvn/zZ4J0vVgPM4mIptyEjWcqUQp0iG/ DzzRMwvPwXEn11MZ7EmGkDE33RmJ8ajp03tiCvto= Date: Mon, 18 Mar 2024 19:55:33 +0100 From: Greg Kroah-Hartman To: Alex Elder Cc: Markus Elfring , Ayush Singh , Vaishnav M A , devicetree@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, lorforlinux@beagleboard.org, greybus-dev@lists.linaro.org, LKML , Alex Elder , Arnd Bergmann , Conor Dooley , Derek Kiernan , Dragan Cvetic , Jason Kridner , Johan Hovold , Krzysztof Kozlowski , Mark Brown , Nishanth Menon , Rob Herring , Robert Nelson , Tero Kristo , Vaishnav M A , Vignesh Raghavendra Subject: Re: [PATCH v4 4/5] mikrobus: Add mikroBUS driver Message-ID: <2024031818-lizard-actress-2279@gregkh> References: <20240317193714.403132-5-ayushdevel1325@gmail.com> <4fe6f68a-786c-4e3d-b97d-847d6965d1d3@web.de> <3eb9d5c2-149c-460c-9684-3fdaf946c400@ieee.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3eb9d5c2-149c-460c-9684-3fdaf946c400@ieee.org> On Mon, Mar 18, 2024 at 01:41:38PM -0500, Alex Elder wrote: > On 3/18/24 12:58 PM, Markus Elfring wrote: > > … > > > +++ b/drivers/misc/mikrobus/mikrobus_core.c > > … > > > +static int mikrobus_pinctrl_setup(struct mikrobus_port *port, > > > + struct addon_board_info *board) > > > +{ > > > + int ret; > > > + > > > + if (!board || board->pin_state[MIKROBUS_PIN_PWM] == MIKROBUS_STATE_PWM) > > > + ret = mikrobus_pinctrl_select(port, "pwm_default"); > > > + else > > > + ret = mikrobus_pinctrl_select(port, "pwm_gpio"); > > … > > > > How do you think about to avoid the specification of a bit of duplicate source code here > > by using conditional operator expressions? > > > > ret = mikrobus_pinctrl_select(port, > > ((!board || > > board->pin_state[MIKROBUS_PIN_PWM] == MIKROBUS_STATE_PWM) > > ? "pwm_default" > > : "pwm_gpio")); > > No. > > It's a complex enough bit of logic without trying to bury > it inside the parameters passed to the function. Hi, This is the semi-friendly patch-bot of Greg Kroah-Hartman. Markus, you seem to have sent a nonsensical or otherwise pointless review comment to a patch submission on a Linux kernel developer mailing list. I strongly suggest that you not do this anymore. Please do not bother developers who are actively working to produce patches and features with comments that, in the end, are a waste of time. Patch submitter, please ignore Markus's suggestion; you do not need to follow it at all. The person/bot/AI that sent it is being ignored by almost all Linux kernel maintainers for having a persistent pattern of behavior of producing distracting and pointless commentary, and inability to adapt to feedback. Please feel free to also ignore emails from them. thanks, greg k-h's patch email bot