From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 6BD6A1D172B; Thu, 24 Oct 2024 13:08:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729775304; cv=none; b=Ph9hbsFQCLs4wn1LVbUIon9SnuxzH9lITA05BJCLr15MhoEPZJ6jP06kCKJXPrIY4aoLWRslkJ8SEnapMntRPaIQpZe/DJov62i6uDZV4CTpIjr7VKuJiF4dMFZQWHHkb7+fgZUrzGxuwy1gZHK9fm5I//OFHNAaVKeL6jClsMQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729775304; c=relaxed/simple; bh=EQnbbhpNIa6zDMOk34a2lVBWAg6GcWCIWLGiU/MLnAA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RbBVYuwrrGXeAVrDKX0ncYv2F19mzhPaoN0e4GkKXg7FcZilnRIsmi4yi14y6yncO6QiYLOn+Z0NFo/E9IY6epWiO/wqeVQEdRABn/7EId6ziLoF020GvsLBB3uGkbuL56TYgkLh1a0QPDm9CCn+P4R0NVhR9WMUgxQZRJY3X64= 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=Vlwfnii9; arc=none smtp.client-ip=198.175.65.18 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="Vlwfnii9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729775303; x=1761311303; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=EQnbbhpNIa6zDMOk34a2lVBWAg6GcWCIWLGiU/MLnAA=; b=Vlwfnii9n3aq+0d7l8qjW8rBmm/9/Dyi91hh//kN83no5mrz7IMg2ky9 Z/jOc4MKyiTZOiUmQlkdxfeR10FAvGSlLiz+JZvUnqgAP+WGVs3bV/Odv Yhs2z+fAE55qdAxsrd7ofCt4kU++gpBVZh3j2KYCgnnIT/IMPXO7iAVqU aDjD8/tPWgcsfSt1aptdDYtSZLHAQ8Hzwz2XcXeA0DLrK0Ymkz9XtnbuJ ofdSiTO2XIlNwvCgBuc2IcOmIiDAjqu5Pg7yADEEmyLNpzQ5I4S4T9gRt 4uqrDk5wsw7jUBFZT04YkKe91Abyra5dy5AxK803VPT8szg0B76nBsSUe w==; X-CSE-ConnectionGUID: gvPCsKBWSQGNkUYrpdPHTw== X-CSE-MsgGUID: SvWu3XtzSwSi+hUuLja75g== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="29565894" X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="29565894" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2024 06:08:22 -0700 X-CSE-ConnectionGUID: hzJvD565T+6gUWdyqxwJZw== X-CSE-MsgGUID: sR9tmcbHSu2l63fjDKddbA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="85371588" Received: from smile.fi.intel.com ([10.237.72.154]) by orviesa003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2024 06:08:20 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.98) (envelope-from ) id 1t3xZY-00000006a67-1pCv; Thu, 24 Oct 2024 16:08:16 +0300 Date: Thu, 24 Oct 2024 16:08:16 +0300 From: Andy Shevchenko To: Jonathan Cameron , Marius Cristea , Trevor Gamblin , Jean-Baptiste Maneyrol , Hans de Goede , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen Subject: Re: [PATCH v2 00/13] iio: Clean up acpi_match_device() use cases Message-ID: References: <20241024130424.3818291-1-andriy.shevchenko@linux.intel.com> 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: <20241024130424.3818291-1-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Oct 24, 2024 at 03:36:05PM +0300, Andy Shevchenko wrote: > There are current uses of acpi_match_device(): > - as strange way of checking if the device was enumerated via ACPI > - as a way to get IIO device name as ACPI device instance name > - as above with accompanying driver data > > Deduplicate its use by providing two new helper functions in IIO ACPI > library and update the rest accordingly. > > This also includes a rework of previously sent ltr501 patch. > In v2: > - collected tags (Hans, Jean-Baptiste) > - updated SoB chain in patch 4 Heck, I forgot to address the main comment by Jonathan! Sorry for the noise, I will send a v3 later today. -- With Best Regards, Andy Shevchenko