Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2479253rdh; Wed, 27 Sep 2023 04:06:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFprSCZ7thEowcIU+Nal+eE/i6e58I0QLFdvE5r/zVYlYiEyYaeMYSOLghIzdMPth+J4Mij X-Received: by 2002:a05:6a20:3952:b0:15e:22a4:b897 with SMTP id r18-20020a056a20395200b0015e22a4b897mr7970212pzg.10.1695812796594; Wed, 27 Sep 2023 04:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695812796; cv=none; d=google.com; s=arc-20160816; b=ProOs1seVO7qoHNDgxb+iwzwawPJzEJ/1g7HVdlbnoZLqbcycdHztV2wFacE+gfSyO L9MPlXAY6unWlP16oFj1wp5q/3XszMJBDI9PSpx+V5OCANJavRGFk4Q+/CSNReGqlpIG zupHz5B+I6fbxnnECfEguZyZBuoDzmjKKEWVkkMnaZSKL2HEXPmDx9zp82Z536/d5nzp 18cbGED5dGNJ4JxxgJSSDMHpMIljr6BB4PtpmN1X/3lYhaGTekaF8Hgc6jnzlIlbN28c eGgQvdIfqUdjjLJK4Yy7PJ/zZxL7x0OM4zu1CgBa0qXn5SU1tQS/L+gWOGFibEnZ0gw1 rbeQ== 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=PIhw6V2vNvwuHPJdanJymYad1CWCeReXt9hAkVYiSu8=; fh=YqnJtxrCB1FBW0CEbqSd7GOIWxEwRLIyFLK2fWWDeho=; b=sLO6zstlYPOL1CUxDcMGBbsHH5aUPWOjfGgcTUnpw7tHPOnCIApHjr0T5rnpio3uuw nVSAnAf/71Vgcrz3ykYUafBGhaoD0Sdlw91JKhEtYNigZ3zqyxgPC7NeIJd/gXSkqApQ aun0+vS9c20U9B2vjDt8Mb1lKIhcyEGLufwFIlQIMC9whqSsyOtHI8s8IAWT8RvZHzgY 6YfULnolWNx4BLf3kJRSkvRzI8rK7A2oJ7kKh3nAe1ibPpP/ta6FxFHRqexmza/tqjnp ov05k+hOk5/XURKnjdiyb6yp8MMAur4ccOeK1nlY71S1UjJ/PZi//WV6OI4jem7DkwyF NYFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=UUgp2qkB; 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 Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id a73-20020a63904c000000b00578a7f5a0b2si14873828pge.403.2023.09.27.04.06.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 04:06:36 -0700 (PDT) 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; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=UUgp2qkB; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5CF318246322; Wed, 27 Sep 2023 00:02:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229458AbjI0HCU (ORCPT + 99 others); Wed, 27 Sep 2023 03:02:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbjI0HCR (ORCPT ); Wed, 27 Sep 2023 03:02:17 -0400 Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93AD5121 for ; Wed, 27 Sep 2023 00:02:16 -0700 (PDT) Received: by mail-vs1-xe2e.google.com with SMTP id ada2fe7eead31-452c0d60616so6481208137.1 for ; Wed, 27 Sep 2023 00:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1695798135; x=1696402935; 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=PIhw6V2vNvwuHPJdanJymYad1CWCeReXt9hAkVYiSu8=; b=UUgp2qkBRuw7atZO+bq6YhZnv2XP7IXd16nAdUZoFPR6yYKrrje3qoKCG8PWe+lXZA wvB6L/b2+jWifMiFq2LqfScOb5McaPyr2PYzZvk/ALoL6VW2SHkFRXRTaOUvDD1IGoHf ITmQj2ihroFVxBp29v3yyrtt+7r4ErTriCU25/tuGZFctbEV2L4PwyKDhg1o6oBDNOGT HP1HGeGNkUro89LmwjFXv9IxiUI4w2v3dQP6TpVZoFaNzNKjsYz9lDXyuSXIwU0eiwqt Dud/Vjhj74jiZ3HK5VGJR00Uvdcm+B5JEEbgSrmp3KrKxH+4A1JhuTZCA4KDgkZniqJM tmMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695798135; x=1696402935; 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=PIhw6V2vNvwuHPJdanJymYad1CWCeReXt9hAkVYiSu8=; b=lWjQ/U51kS1rYEC1fibOjh+PogZAknS6oU1JmwaC8WCZSUse1EoKSuuP5uOJbRYzbH eg3XNXbt6Phm3kvelsIyhiOiN0L2d/45yqjP04D2/RXeIPI5emO6tBNkTSFCudYSkLKC Z+wQF15Xfj0Cmv32EUzcYT/ZlVhFWAz08jFVf6SKfsLUMPy1dtSmghdzBB6vazq5j9os DL3+M3emtTxnxY68AP/RF4HoJRSvhiQUYsNDYfXVob2Sts8u/hMkDLYNu/qvLv+m7vnq NUGIBQC4IIw8epK42vW/BR13+UpIJDYkeyYTilwy6zIWDX29ps0azEXvkBbZfzm1XWwA FTrw== X-Gm-Message-State: AOJu0Yx8pFHuFvaK38vHpwiEru8ozxbW8jYTURb3fKt+mqluBaYp1cfI cGIuPKtg0qvadWpzg9FOBjERmnZV0VDV6NB/CJMPEQ== X-Received: by 2002:a05:6102:3e0f:b0:450:985f:ef28 with SMTP id j15-20020a0561023e0f00b00450985fef28mr2450526vsv.5.1695798135672; Wed, 27 Sep 2023 00:02:15 -0700 (PDT) MIME-Version: 1.0 References: <20230926145943.42814-1-brgl@bgdev.pl> <20230926145943.42814-3-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 27 Sep 2023 09:02:04 +0200 Message-ID: Subject: Re: [RFT PATCH 2/4] platform/x86: int3472: led: don't use gpiod_toggle_active_low() To: Andy Shevchenko Cc: Mika Westerberg , Linus Walleij , Daniel Scally , Hans de Goede , Mark Gross , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, Bartosz Golaszewski 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 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]); Wed, 27 Sep 2023 00:02:31 -0700 (PDT) On Tue, Sep 26, 2023 at 5:27=E2=80=AFPM Andy Shevchenko wrote: > > On Tue, Sep 26, 2023 at 04:59:41PM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Instead of acpi_get_and_request_gpiod() + gpiod_toggle_active_low(), us= e > > temporary lookup tables with appropriate lookup flags. > > ... > > > + int3472->pled.gpio =3D skl_int3472_gpiod_get_from_temp_lookup( > > + int3472->dev, path, agpio->pin_table[0], > > + "int3472,privacy-led", polarity, > > + GPIOD_OUT_LOW); > > Personally I found this style weird. I prefer to have longer line over > the split on the parentheses. > I in turn prefer this one. Checkpatch doesn't complain either way so I'll leave it to the maintainers of this driver to decide. Bart