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 C928DC636CD for ; Tue, 7 Feb 2023 10:15:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbjBGKPO (ORCPT ); Tue, 7 Feb 2023 05:15:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbjBGKPN (ORCPT ); Tue, 7 Feb 2023 05:15:13 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9458CC17D; Tue, 7 Feb 2023 02:15:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675764912; x=1707300912; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=I7d0RC0vVsr21RpYQl6/590xnPKG4A7BHdSv3lUDhRw=; b=Wl/57pYyt02kHPErgCKIESNbuFHBSkUHpmE8KWT2JnhiDdovo24CSigC 6kd750DLOJtRRCUTRkEKN16O31fYmuOzWRMYiEd0+pCRQ6DgwjrYfg5Zl PDCsJy5InoyaCe1gYawem3pu31hmTfza/bKJG7y86c5EdY29ttJTQbvUe 9UgZUtRh5M9k/hx+c9pLCpYZLG9JL+ITXCHqIOd6r3QfClk4lh6e6wgqB Bg25jxvWq/9vRtRiNVMZCfHu706U6wuo17EtrRU+Wf7NDzvXPYRgyqNci gif03mP/Za9uzB6WdC4z26lzwnFD3Ubv9Hv714+GCa7J0/AlO1n7ouBhh A==; X-IronPort-AV: E=McAfee;i="6500,9779,10613"; a="328111237" X-IronPort-AV: E=Sophos;i="5.97,278,1669104000"; d="scan'208";a="328111237" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2023 02:15:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10613"; a="666791538" X-IronPort-AV: E=Sophos;i="5.97,278,1669104000"; d="scan'208";a="666791538" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga002.jf.intel.com with ESMTP; 07 Feb 2023 02:15:09 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pPL0F-003Yw4-1m; Tue, 07 Feb 2023 12:15:07 +0200 Date: Tue, 7 Feb 2023 12:15:07 +0200 From: Andy Shevchenko To: Dmitry Torokhov Cc: Danny Kaehn , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jikos@kernel.org, benjamin.tissoires@redhat.com, devicetree@vger.kernel.org, linux-input@vger.kernel.org, ethan.twardy@plexus.com Subject: Re: [PATCH v4 4/4] HID: cp2112: Devicetree Support Message-ID: References: <20230206135016.6737-1-kaehndan@gmail.com> <20230206135016.6737-5-kaehndan@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Mon, Feb 06, 2023 at 03:18:26PM -0800, Dmitry Torokhov wrote: > On Mon, Feb 06, 2023 at 07:50:16AM -0600, Danny Kaehn wrote: ... > > +#if IS_ENABLED(CONFIG_OF_GPIO) > > + dev->gc.of_node = of_get_child_by_name(hdev->dev.of_node, "gpio"); > > > I believe Andy is actively trying to get rid of of_node from GPIO chips. > And in general, we should be using fwnode and generic device properties > as much as possible. > > > +#endif Correct. And looking into the code of this patch I don't see any obstacles to use fwnode APIs. You can Cc a v5 (which is supposed to be fwnode API based) to me. -- With Best Regards, Andy Shevchenko