Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1482381pxb; Thu, 14 Apr 2022 07:11:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRSoi2rFzJ8j3vhH2TWJhoHEWks5WIDgueRcE6l09LaIJiTv6Y0Xg921lX6lN8SwErH9dk X-Received: by 2002:a05:6a00:218d:b0:4fd:f7a4:d4ad with SMTP id h13-20020a056a00218d00b004fdf7a4d4admr4064929pfi.83.1649945504562; Thu, 14 Apr 2022 07:11:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649945504; cv=none; d=google.com; s=arc-20160816; b=K2Xl2QwiTc1mA2Zr3gFuk1lKubJdmKleqGX2EQlI+PPxt+7Hmh1Q+rYSNlgY59TVjU mhpx4kJ2l20yrl0IXEPWaRkN0IqGO1LWP+qYMN4MUMICyewKcP6+kmdl3T0QJEvjSvjH 9qJMJYc0SAH8K9zwROJ5be5DHneIpjkm9neV6xwF+zBRMoQrxUx8EiDetvz5r3e/WtHx ag3BGBqWDvWxFYciC7mRIAl0EKO2ZvklqoK/iuiyXY7C2+svZtAPnrrsM7vlG6uoRAoy sC13yPGm0wGhxLsVJmQQveIvMtFyZN6oSLaL6LtXbbO8yvEM0edwnrnx7w5uZ+b0ThQa fazQ== 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=yPZ1koFSnkK9ab+Of84q5DieFUtFFZlNqKgZ00djhmY=; b=PERj6fOnGbSknRUSJdUX9T2TwExv89vWblubL99oyEN9NYtZehru/H+460t6dizQBU 935jNJ0xgvHdk28eV+V/X+n8VkNS3LEMHA55hhGaxNCcPoK5fZCIrrtFrShPEsxpj57/ GlrvBrULayTPB/fshThV0XQqHMFY+EeQlEtaciOWMXYm4GH2sjUClFgUi5KO4ESmv6ja Q1VoGlKn2yTur0d4vU7qqQfvOcfci6a0KPrFVURy2apGPEkC0vhvuEJ8lGhroSUe1pNH MWR6n2WSVSuTMK0XKdk6rCdxu76wOEI+xx6jmrEyE6YdEL+iftzj6FfLwqMhbyO98Vao 9iGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BgHtpMjB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a63d804000000b003823abafdf4si8455252pgh.371.2022.04.14.07.10.56; Thu, 14 Apr 2022 07:11:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BgHtpMjB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237542AbiDMSN0 (ORCPT + 99 others); Wed, 13 Apr 2022 14:13:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237598AbiDMSNX (ORCPT ); Wed, 13 Apr 2022 14:13:23 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59F2742A1D; Wed, 13 Apr 2022 11:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649873461; x=1681409461; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0k/x2QWhXcod6LrpeYd8pZ6GKq7UkjSZY6p5v6Jf2zs=; b=BgHtpMjB8yk//QBs3MyTRVDyLOdmlmTDDFUTLjEAkay06CbOZRJO6lEj 9+5T2oBoBsPmqtZOf3JyF8xkqftQcFpYF3icVSBCXU/1G5RH5msl6hnCO Az0yIziUBOybLV6CLe9dRjE47v/P14nK6GDLJ7w7+gQzMkpooTAxLjhMk Ki52GvCIfrXlrKGjBfxlthan9O+/Ez6Pi0QURd1Uo1vRoReHpsTQEY/FS jZmADCcUAclHV42O9EU3PTmNrsccja1F68lxhf7+PntD7mXJMgbpVJtx3 FW1NRSNEBdQZOTq9LQhbKA7836zn60OvvS4gA9g/eQZ1ioOfDNquOrWxB w==; X-IronPort-AV: E=McAfee;i="6400,9594,10316"; a="262491549" X-IronPort-AV: E=Sophos;i="5.90,257,1643702400"; d="scan'208";a="262491549" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2022 11:10:49 -0700 X-IronPort-AV: E=Sophos;i="5.90,257,1643702400"; d="scan'208";a="661029240" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2022 11:10:47 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nehOX-001xLb-0j; Wed, 13 Apr 2022 21:07:09 +0300 Date: Wed, 13 Apr 2022 21:07:08 +0300 From: Andy Shevchenko To: Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen Subject: Re: [PATCH v1 1/1] iio: core: Convert to use firmware node handle instead of OF node Message-ID: References: <20220413180202.19220-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220413180202.19220-1-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Wed, Apr 13, 2022 at 09:02:02PM +0300, Andy Shevchenko wrote: ... > + /* If the calling driver did not initialize firmware node, do it here */ > + if (dev_fwnode(&indio_dev->dev)) > + fwnode = dev_fwnode(&indio_dev->dev); > + else > + fwnode = dev_fwnode(indio_dev->dev.parent); Can be also done as fwnode = dev_fwnode(&indio_dev->dev) ?: dev_fwnode(indio_dev->dev.parent); -- With Best Regards, Andy Shevchenko