From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70682C0015E for ; Wed, 19 Jul 2023 16:44:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230233AbjGSQo3 (ORCPT ); Wed, 19 Jul 2023 12:44:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbjGSQo1 (ORCPT ); Wed, 19 Jul 2023 12:44:27 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93CBE172E; Wed, 19 Jul 2023 09:44:26 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10776"; a="432707344" X-IronPort-AV: E=Sophos;i="6.01,216,1684825200"; d="scan'208";a="432707344" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2023 09:44:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10776"; a="724046056" X-IronPort-AV: E=Sophos;i="6.01,216,1684825200"; d="scan'208";a="724046056" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga002.jf.intel.com with ESMTP; 19 Jul 2023 09:44:22 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qMAHk-001EqZ-1u; Wed, 19 Jul 2023 19:44:20 +0300 Date: Wed, 19 Jul 2023 19:44:20 +0300 From: Andy Shevchenko To: Samuel Holland Cc: Linus Walleij , Bartosz Golaszewski , Emil Renner Berthing , Rob Herring , Frank Rowand , Palmer Dabbelt , Paul Walmsley , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v2 1/4] gpio: sifive: Directly use the device's fwnode Message-ID: References: <20230719163446.1398961-1-samuel.holland@sifive.com> <20230719163446.1398961-2-samuel.holland@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230719163446.1398961-2-samuel.holland@sifive.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 19, 2023 at 09:34:42AM -0700, Samuel Holland wrote: > There is no need to convert dev->of_node back to a fwnode_handle. ... > - girq->fwnode = of_node_to_fwnode(node); > + girq->fwnode = dev->fwnode; dev_fwnode(dev) ...and include property.h here -- With Best Regards, Andy Shevchenko