Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2003314rdh; Tue, 26 Sep 2023 09:24:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+lgoONdR6hDdWRaP+3/3RwRn2OchJzVB3PVn8hNCgcYT8A6hwp9vptrq92htB5Ef6HkVA X-Received: by 2002:a17:902:c94d:b0:1c6:e1d:8be0 with SMTP id i13-20020a170902c94d00b001c60e1d8be0mr3740243pla.2.1695745466615; Tue, 26 Sep 2023 09:24:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695745466; cv=none; d=google.com; s=arc-20160816; b=T84huu76Pi0pdKwulTU4sncjYiw9WQquq/GR6CgctQVh59q/LQxhAmzEdHkkNubasP v2tuqMWqopWi39pR9uglzOKoH07gur2iJdFttUo0M6U/K6Q+DHb2gSqV5C+I2A86SWRm Ciyoz8O7AiXBlTIwNoowQihtMZTNuex2hK6wf1UZch9o20haalGeP+UeWQFKhqqTJaHy yfim4RypA2ksfHYB8WIHHVLnD93QxLTkGpCWz/AlQbMmCvmejigHQiuzEEolQJfTqu1Y pcHfze9x/eMN8pXp8tNPxEuYB1UL/Du8xIRlHPGcmjWJYeIq4e8yF5o24rxy4J7TVk0e YgTg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=z7Y+cOerfh1g8y09G3HMF//gGzOaUFCPn6oucZaEaZo=; fh=dlWaF0ouAk38l6ZadWZzGtL4PI4M8Q/efUW65rhq1u0=; b=I09L1VOF5JhMQYlcNSonLJFWZkJ8KC49vsQz+GbjY6/s+YKl70JzWjWQ0XsC3eNiS3 F1Pf0nnOdcgS/KMniPwvcIKc/CtzthxI/wwYHgPVq4ZFu7EpD/35PxKFn6SzZDYR0aGZ XptS1wOgvGr0agndtD5D3/zLflNqDm28RG3JnNfYLn4K7qFovbyRhOpSdr4qj0P4VQpv MPmjJDyYHcjsjBCUxZwTgprYAPVyqG77qHG+O8wEXzaZhY6wViQ2UQefi2xzHFG6hLFi 3aNPqk0DD8RJpmgx7T+h87RsuGwSi/NuMf5MAulT+6GPtvQw2ROQlOUHKzWdAVVsaVED j2tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ik12-20020a170902ab0c00b001c60c77ec1csi6685544plb.511.2023.09.26.09.24.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 09:24:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E6B0D819146A; Tue, 26 Sep 2023 09:17:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234866AbjIZQRm (ORCPT + 99 others); Tue, 26 Sep 2023 12:17:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231137AbjIZQRk (ORCPT ); Tue, 26 Sep 2023 12:17:40 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8711B8E; Tue, 26 Sep 2023 09:17:34 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="380475336" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="380475336" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 09:17:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="839072935" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="839072935" 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 09:17:29 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1qlAkX-00000000ezP-49GW; Tue, 26 Sep 2023 19:17:25 +0300 Date: Tue, 26 Sep 2023 19:17:25 +0300 From: Andy Shevchenko To: Duje =?utf-8?Q?Mihanovi=C4=87?= Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King , Alan Stern , Greg Kroah-Hartman , Linus Walleij , Bartosz Golaszewski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH RFC v2 4/6] ARM: pxa: Convert reset driver to GPIO descriptors Message-ID: References: <20230926-pxa-gpio-v2-0-984464d165dd@skole.hr> <20230926-pxa-gpio-v2-4-984464d165dd@skole.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230926-pxa-gpio-v2-4-984464d165dd@skole.hr> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 26 Sep 2023 09:17:40 -0700 (PDT) On Tue, Sep 26, 2023 at 05:46:25PM +0200, Duje Mihanović wrote: > The PXA reset driver still uses the legacy GPIO interface for > configuring and asserting the reset pin. > > Convert it to use the GPIO descriptor interface. ... > +static struct gpio_desc *reset_gpio = NULL; Assignment is not needed, it's guaranteed to be NULL by the C standard. -- With Best Regards, Andy Shevchenko