Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2697613rdb; Mon, 4 Dec 2023 05:17:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQjF946EgypfHqi45D5VZeMXzRcbdYsnSdE6FWc2Q9hE7S5lurTyEjPgGlGy+rtoBNtDhI X-Received: by 2002:a05:6a21:339f:b0:18c:aa14:ad4 with SMTP id yy31-20020a056a21339f00b0018caa140ad4mr5100438pzb.30.1701695822178; Mon, 04 Dec 2023 05:17:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701695822; cv=none; d=google.com; s=arc-20160816; b=cuG4RyjMTrHdhfrZK3pCd8TTmCZVlW+mXl1iuLNPv5u4yg9bUkLkgSG6A8cB0ERQWL XlsZ6ETV8sdoUhiG1KuOLHZ97WmR1gPyyDqXELrhPdvvNzbYEyCRxJy7MigWMzhu+ien ZMAvdhwZGqguH32A2vX4+u40oY3xHyzm+CSICTG13AygIL8zC/9yTGmGVAAFxFssX+bB nwV9b+OryCbcufvACacz55L7U2fLTkCB1onRXVG72AA9opqUddTu8K9fmaeFSIuIMBvV /bjLcX5p19fV/HIji1iAt7E79OTUzlSTXdA05xjxBXCxbb/BBaDsmsNLJ+tixebYraZa KqhQ== 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=uInZF5srAAgLkGO9AICUrm7PcM2PyFj1tEWByiyPwto=; fh=oR8ZQ0z+ZlZlaV2+jyZwpaPNan+XZoJkFqKcBuPZX9o=; b=G+rlpSGnRFq4pYyv2g4baEzdlX4cK+mWpFVF/cgd0FXGZVLEPwHwzonHzFvEZLIIXp gQKBCCizfAbkDRJYi+sS29uGH9EAdS5B96dbqD5DTzuFcjjwKNUZfSJZGNj6DzSROK/5 diZdK8bGNcuj9dpyMRsb4glcBEXzeBe9h9IjLtP+NPYTZyAEj8TW5mOVN9QMs3a4PVAu VhBesu/T/C61sC7MHUfdOypD2HWNDbJk3v2OcRPXIUXTxnkSwPs/I8P2WLkcxpmr4//v S4POYoaRSIIWNugPgnhEgffIB5EC36Fz7P02frAJ94rZ2wYLdI060vHS4g4nM1+zGhsb W+SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PJWi8vuA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id c6-20020a6566c6000000b005c666769668si3432415pgw.200.2023.12.04.05.17.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 05:17:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PJWi8vuA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 9662880ACC5E; Mon, 4 Dec 2023 05:16:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233473AbjLDNQq (ORCPT + 99 others); Mon, 4 Dec 2023 08:16:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbjLDNQp (ORCPT ); Mon, 4 Dec 2023 08:16:45 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFA5FAC; Mon, 4 Dec 2023 05:16:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701695812; x=1733231812; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ruNQAEGel56sXK2lguhT42sAf9ycNnOllBZQjHkiz68=; b=PJWi8vuAeDGxWmC51xOgTiB7Xwmd+3IsWThqlM69FemK1I7ldZaurLM3 TARm+gcD43ls55I2Q72/39L0Yef7FHoDTwEmC66R8rNtk1vZikF7Ft/bS A3XqwGC7dBcvOzeDjMS3q04OXdlEcKypy47jVyioKncz6EsFnZPmy8Ksl 40ByOlgx9BrT7+z1MUPlSMUHfwugqZoPGSXbJ82SatM8NqkPcsywc0u6V U18yfhxYNnMUtJ2qd+eb0vX2MxYKR7tOlZnSWt9iD5MbP+wlwr7QAlx35 s4HpL8ELMwXkOUHplEfyvy6H5BQLNdWCBYSmaRaGuBcf7CgLKQwdvrjna A==; X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="629373" X-IronPort-AV: E=Sophos;i="6.04,249,1695711600"; d="scan'208";a="629373" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 05:16:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="774254311" X-IronPort-AV: E=Sophos;i="6.04,249,1695711600"; d="scan'208";a="774254311" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 05:16:50 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rA8oZ-00000001kz7-47cN; Mon, 04 Dec 2023 15:16:47 +0200 Date: Mon, 4 Dec 2023 15:16:47 +0200 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH v3 02/10] gpio: wm831x: use gpiochip_dup_line_label() Message-ID: References: <20231204093509.19225-1-brgl@bgdev.pl> <20231204093509.19225-3-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231204093509.19225-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,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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 05:16:59 -0800 (PST) On Mon, Dec 04, 2023 at 10:35:01AM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Use the new gpiochip_dup_line_label() helper to safely retrieve the > descriptor label. ... > for (i = 0; i < chip->ngpio; i++) { > int gpio = i + chip->base; > int reg; > - const char *label, *pull, *powerdomain; > + const char *pull, *powerdomain; Make it reversed xmas tree? -- With Best Regards, Andy Shevchenko