Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6729465rwb; Wed, 18 Jan 2023 08:40:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXsG5ZVErL76CtsJ+aBMQ8v82N8/d6I9MNBIdz+nsj4fcpV1laqvju+o99YSUhqbIHhnmqBp X-Received: by 2002:a17:906:1485:b0:7d3:c516:6ef4 with SMTP id x5-20020a170906148500b007d3c5166ef4mr8136450ejc.20.1674060056406; Wed, 18 Jan 2023 08:40:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674060056; cv=none; d=google.com; s=arc-20160816; b=VQXF+nqUZEbb3iUg/C+U4tRP1FBveZFvD4QG8ocTok/m2glzJNQy1UxMbzMm5H6Hk/ ZcFdZwQWo0ytZHbDnmxjZH0Tr0gfi7mT1GSUBK2AZwiN9s0MXIoFPFx06cciUrExKK25 EoGZJwj4/fD2JrlsAU22Y+3lGk5F/wfLz09p3yfEl53p2D1Kkbxj74OKsjxpIObrx9QT WDj6KvCsNOR3EIeRYz42B4rVcTyv+NRED29ovkvpTSHklaLD/OG5WnzJDEbYq/WrJwq1 vGqaRUUHIS16DYhVjhVr3MWksg2an3J+gkLMJczFULjwlVbhRtGN69l09fExOdB7mutP dXbA== 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=J+6CN4asDEAHXt3P9sqgwKK/cZnDPMYaEEJ9q6SZxtw=; b=mLbqlOBhaTNEoaVjW5hF4Fdd1eqSwCItXuUKU4F0Baoi8GiBEUlCs+i0OfMsFwmjMf VySEPIsb5hhrNu4D+QOdVACSBNKMEZ+Uq2Hd1e9m7jtfqeatalJojXnRz16rZb/vibu+ xu285HO+XQ6E6SJJnAVCFYG1JZFXN2DtiY/BHHA0bNQ2yI+tvkgtzrra+tfbp0vuZ6ub 2aGkaSJAwW+Be3rjebXv2MOd5oqaYLO+DaW3ImTh+0S79HbsYzUN/t3dupQqgWe7cGEB pewXEEerV2aqph1kirmcVCs/WmOSH3m18B232kGkJC8ui/f1GvBxLaaMEl77JJatFwQ7 dNSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nPT0tJIc; 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 oz19-20020a1709077d9300b0085738d104fcsi30235125ejc.213.2023.01.18.08.40.44; Wed, 18 Jan 2023 08:40:56 -0800 (PST) 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=nPT0tJIc; 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 S229479AbjARPwl (ORCPT + 45 others); Wed, 18 Jan 2023 10:52:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230455AbjARPve (ORCPT ); Wed, 18 Jan 2023 10:51:34 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A613E43462; Wed, 18 Jan 2023 07:49:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674056978; x=1705592978; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=2KTLpDLI59XYuNm6chvF++y1aXAv7uQxEewm8vdKkWg=; b=nPT0tJIcnJYtfSd55fiv0e6y4QXYK3Am83cb27QV7/9qzt9fc7Pm/6As vB2AOBAYcavh7I5XO5yGNUqJ1PjxKOb/rAz2FkJ1o9akuBxcDV4N9RXft E/9ZDGry/A0wTJcl/HEXQ2cw9kJSQwzWKezMd5JGKRpXJL7JFx8zc9B8K 85ufYQqFmeKAsgQt/zJA5yk8n1Q2zxHZfPwAVc9ZHPpx//0TD7ZASDnfA FUQmVXW5/TWM4L8n74Kg10SQHpO97pbn6cWQm68BvJMargBI+I5WGPBrX /RbMpyzWCUrkUpDnN8TbVnEyCRVvaiyr8BNMrpuSVYlT/t7h8VutcsCXC Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="322702396" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="322702396" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2023 07:49:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="661760886" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="661760886" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007.fm.intel.com with ESMTP; 18 Jan 2023 07:49:36 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pIAgw-00BFdy-1J; Wed, 18 Jan 2023 17:49:34 +0200 Date: Wed, 18 Jan 2023 17:49:34 +0200 From: Andy Shevchenko To: Lars-Peter Clausen Cc: Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron , Michael Hennerich Subject: Re: [PATCH v1 1/2] iio: core: Replace iio_sysfs_match_string_with_gaps() by __sysfs_match_string() Message-ID: References: <20230118074828.66155-1-andriy.shevchenko@linux.intel.com> <5f9b713b-9c71-7da6-e674-b6ebd28dc5d5@metafoo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5f9b713b-9c71-7da6-e674-b6ebd28dc5d5@metafoo.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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, Jan 18, 2023 at 07:22:30AM -0800, Lars-Peter Clausen wrote: > On 1/17/23 23:48, Andy Shevchenko wrote: > > None of the current users is using gaps in the list of the items. > > No need to have a specific function for that, just replace it by > > library available __sysfs_match_string(). > > Hm, I specifically remember adding this for a driver where there were gaps. > One of the DACs. But it might be that the driver itself never made it > upstream. I have checked all modules that have struct iio_enum and/or ("or" probably may not happen) IIO_ENUM() in them. It might be that I missed something. -- With Best Regards, Andy Shevchenko