Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2044802rdh; Tue, 26 Sep 2023 10:34:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFifhftQ5pbZc2GB6eqaDl7Pn1+zu3LJC/4aMUhOM8/OqphKnPxXS5+86heRBfx7v3AiMpX X-Received: by 2002:a05:6a20:3d92:b0:12e:caac:f263 with SMTP id s18-20020a056a203d9200b0012ecaacf263mr4805973pzi.20.1695749689719; Tue, 26 Sep 2023 10:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695749689; cv=none; d=google.com; s=arc-20160816; b=zQFlroZtbbbyjd7kBRQYrQ+1yBnqniXupyQE4b0oeAiSkSyXXFbnXBIAAoA2E7iQFZ A61zy2CkkMK2SsCiHMJJ2SfiwZrKFBS2BXT4s/xDpEhDKX3wMWObR3aSq4/nx3xi57/r jK+HlLSul9iNmwzFg8a2T647Lpo4UOLHfZD1fvlF+JQITjQCFibP/6aBGne/cBcsM59B YJWBlI5ffhzjwycDRh4HrmqGe8rI0aiSZ5D4ZTVkf/kphyJET0Qc/NJZrfsRPKKlC0ox ZEeZ7RIRSJw7J4mJ5fvgOrJfQP0FoQjf07KkqcUhsgRZYmwMUUfYGfietLrx5deWy5h9 NA9Q== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=13jK0lynzkZty6WIVjH3TnCCOuzWKAHGHSVJs/qQYxc=; fh=weJNFk4nPJgfZSlbMh7Mn0u84ZSCnS7cqmE7/6qiyxs=; b=JjxASN0lNhT4h9xa6DkKeeo+C5VbIqr7OOQxabblbtRQvmxg6gJTNtT8CVgWvwYV8Z G8QiFqQgYh8hEQn3P66NA3D6Hz2R66115PSVg5mhLnpKCKXFNaWhBzMy7xlKz+/ciQiJ GGrq1bl5kmNFw0wRf9IysrnYwowDFr7GVXiw0FINxS8mVHVtLaKUtdrMAZdljgC6g/JO j01YBaI6Ml5Je+NkXftWWTEqg4IU6wtXFEINpUDuXJjF+znsJd0TcXGlds9ABnAvjpVh CgwWW8FhX2wO2uUnCImlgukyM/q4JCvVrTAMPjIcxpciYFdixs9NeqbpsT+d7z8JeRNn Z6mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fGEwg8BG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id u71-20020a63854a000000b00578bdc2ccadsi13279601pgd.197.2023.09.26.10.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 10:34:49 -0700 (PDT) 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=@intel.com header.s=Intel header.b=fGEwg8BG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 35D5F80B02AF; Tue, 26 Sep 2023 08:27:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234862AbjIZP1L (ORCPT + 99 others); Tue, 26 Sep 2023 11:27:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234902AbjIZP1J (ORCPT ); Tue, 26 Sep 2023 11:27:09 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C00B1194; Tue, 26 Sep 2023 08:27:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695742022; x=1727278022; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=EL5E/4NncYmKUL+520Iyp+Uj3MNs/WEgnKcUVFXSP5s=; b=fGEwg8BGqjN7UrxgqyxaQFxsamo511wt+AhVvRylDGS11ZqJxmH7P7Wo a3G1ne2uEBTSHtgD8EBexk7Zaqg2lHbgI5gnSvzMM0HFJgATH9CJOqX/6 Je2c5f0618+cYnq7rEvHWxVLzicEKoWeXlN6zvZkY3mbx+c16oxdHKC5m 1/4J6BY9gtsKilgD0cYyRCngPTChi1JRH5wrrzIkqR67LMhHEBKp98t5Q gRaFAjjxNl+6/WQugEjtQWHVnOfNK0t+jytwuJdN3m0tGrz58RTThY526 La20Q3QR1RMGsbddqJ0riXPmWbRtfXdNtcCpJqS4kESbinUNsFOKdKokt A==; X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="378871151" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="378871151" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 08:27:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="839060442" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="839060442" Received: from smile.fi.intel.com ([10.237.72.54]) by FMSMGA003.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 08:26:57 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1ql9xe-00000000eKO-0NGt; Tue, 26 Sep 2023 18:26:54 +0300 Date: Tue, 26 Sep 2023 18:26:53 +0300 From: Andy Shevchenko To: Bartosz Golaszewski 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 Subject: Re: [RFT PATCH 2/4] platform/x86: int3472: led: don't use gpiod_toggle_active_low() Message-ID: References: <20230926145943.42814-1-brgl@bgdev.pl> <20230926145943.42814-3-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230926145943.42814-3-brgl@bgdev.pl> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,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 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]); Tue, 26 Sep 2023 08:27:12 -0700 (PDT) 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(), use > temporary lookup tables with appropriate lookup flags. ... > + int3472->pled.gpio = 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. -- With Best Regards, Andy Shevchenko