From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88EDE1EB38; Tue, 20 Feb 2024 06:55:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708412151; cv=none; b=GH+/9nPodb131DR+5MplduFEyzEicHsDtzyoULL4MCr+4gVXtxaWd5IL3XSvEZpWT1356fPo5tBnyxqmRXc62TgYeko/OBAPwEFADAzgMbWxfh6zM7dFaZX7m04OJGHsMvrzCFQR+uPaGoy/DSG7wcyN434zd1U2oIqUZhzmFOc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708412151; c=relaxed/simple; bh=Be6CVYvpuxyTMQF7JI0v7EwFajEEOSdq2YOUD/ZTjdo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ChOssY8rDZXKCCGlFZl/BoiGqJKYXJ/4pQZRlkF87SmRw0oN4Dy0pUfE3iPVPf1qFr9sGU9VrPnID7/UMnbifMgyeZEBvxTeUJdGIgceHvgNctyh/EiQ6JOCChqn0a8HkdcVzjkALpjrgiKRAodix+oSmtVd1yrgtZcsYkqNmCY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=TG98GoAA; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TG98GoAA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708412150; x=1739948150; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Be6CVYvpuxyTMQF7JI0v7EwFajEEOSdq2YOUD/ZTjdo=; b=TG98GoAAyCTbjn/YRlWvd+I3GgOiOROdPQaddYTbgSjUuTasdXnsxVtQ Mw54WrLXoVre6WppDpePuEZheo8TBgr/EO/rUiczwQE0CP0+E6LXWPZUG qjsDLRBQaqqytYQ0IzWKKHv03xHiZV5S3vs3IOYTcz567aPqfNL27lY+R 8/s/XS8DSTM+dc0ikiRz6+VpbzuQ/2OT1IqVt9u6Q86n5fV4PeC9xLULL qkfgojcthPyIDJbsHzM5IVbE6HzJdYkbNStUQI3R+FC9I6zVi9f0PviYi moeuwLFqyBmEDpmjBsuMDuq4+ka2Tc9d5kRMWLC9BNjfVmQV/nS834KWS A==; X-IronPort-AV: E=McAfee;i="6600,9927,10989"; a="13054410" X-IronPort-AV: E=Sophos;i="6.06,172,1705392000"; d="scan'208";a="13054410" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2024 22:55:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,172,1705392000"; d="scan'208";a="42179925" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2024 22:55:42 -0800 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id ED0DF11F7E1; Tue, 20 Feb 2024 08:55:39 +0200 (EET) Date: Tue, 20 Feb 2024 06:55:39 +0000 From: Sakari Ailus To: Jonathan Cameron Cc: linux-iio@vger.kernel.org, "Rafael J . Wysocki" , Len Brown , linux-acpi@vger.kernel.org, Andy Shevchenko , Greg Kroah-Hartman , Daniel Scally , Heikki Krogerus , Julia Lawall , Nuno =?iso-8859-1?Q?S=E1?= , Cosmin Tanislav , Mihail Chindris , Rasmus Villemoes , Tomislav Denis , Marek Vasut , Olivier Moysan , Fabrice Gasnier , Lad Prabhakar , Dmitry Baryshkov , Marijn Suijten , Marius Cristea , Ibrahim Tilki , Peter Zijlstra , Jonathan Cameron Subject: Re: [PATCH v4 02/15] device property: Add cleanup.h based fwnode_handle_put() scope based cleanup. Message-ID: References: <20240217164249.921878-1-jic23@kernel.org> <20240217164249.921878-3-jic23@kernel.org> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240217164249.921878-3-jic23@kernel.org> On Sat, Feb 17, 2024 at 04:42:36PM +0000, Jonathan Cameron wrote: > From: Jonathan Cameron > > Useful where the fwnode_handle was obtained from a call such as > fwnode_find_reference() as it will safely do nothing if IS_ERR() is true > and will automatically release the reference on the variable leaving > scope. > > Reviewed-by: Andy Shevchenko > Signed-off-by: Jonathan Cameron Reviewed-by: Sakari Ailus -- Sakari Ailus