Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6735804rwb; Wed, 18 Jan 2023 08:45:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXt1UeA7hqca2VQyGYWrhQVHjlYyA2DspiU5w/QYbyYc58Mc+KkETxZqlUpCObsqln67ZZyw X-Received: by 2002:a17:902:b496:b0:192:aecb:232b with SMTP id y22-20020a170902b49600b00192aecb232bmr8472398plr.18.1674060351913; Wed, 18 Jan 2023 08:45:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674060351; cv=none; d=google.com; s=arc-20160816; b=0GZGXfXXuDcTIz1qaCST/8U2fX4NhHT1KI2wBRUBvc3sRNcl8HoIfIras3F7B/GL3T aSfQFoIk/cjHocGvnQiW7NIvf2oggGRzr4Y4o2Jhb1MoJ1/C4pnG79YzHNd8UZCdZkSD Izvfz1jZoZO/L3AK0t1e+E6tOMFy3ihQMwWdY08gbbHi6AU3koauEhZEcJULaU8fMdkg +Apx/c/RjdlsMV6SdREm5VNGEikS1B2XPxfKtmbU3cu0a9keRLEhJymvrGUs2SaexOYk yJonLpB5vWl13HFgmRC2fNIfF5NhhzbdYgTOf4Q1BlH7+s9TpAOLPhjDoYuQ3qS7o/l5 WsVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=pHXxnxZLzOGoKxbma4bKofhzaLgd2KSaWI6G8LAFKCg=; b=01gI5uKrv+aiHMDsA7k7m+9glgwiVT3JCl39ACoOx5sAygdxp1jiswgorzWGncIB/J NKffugge2/OQz10YAPhU0heCR9+MvpgOw87WM4BI9oIkER68mSX821wCE2XBVsTyFlLd OSDFuHUzbQdoAkdBCay4Cb4UoyydWF4j7B1wOr+p9NZx/z+IrpR+ZX1gOdo+4T96NsC+ AEaIYkk6P4e76ZeyD7r/shKHwozwxoUrpODJdEol0oZZrzGqgjoLMJJefRNPv/wOz5yT 9+IHMdV8TLonLONksdawYwborLxcwd/gdSMlkVFd5EbfE9frtSusOMo+4iCWWrR/32dP M34g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@metafoo.de header.s=default2002 header.b=D4G5mLw+; 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=metafoo.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l19-20020a170902f69300b00186c37272a6si2275358plg.178.2023.01.18.08.45.46; Wed, 18 Jan 2023 08:45:51 -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=@metafoo.de header.s=default2002 header.b=D4G5mLw+; 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=metafoo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230389AbjARQhw (ORCPT + 45 others); Wed, 18 Jan 2023 11:37:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbjARQh0 (ORCPT ); Wed, 18 Jan 2023 11:37:26 -0500 Received: from www381.your-server.de (www381.your-server.de [78.46.137.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 556EB41B7E; Wed, 18 Jan 2023 08:37:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=pHXxnxZLzOGoKxbma4bKofhzaLgd2KSaWI6G8LAFKCg=; b=D4G5mLw+vwzwIOtrf1Ik8JoPVb 2jbbsXY3/bX+/4wa7wCfjjYhxdEVTfZRFk2yZk8asjo6lqYlmEQcU3Il3N/bHStI1WGv79kb0wMQr QeSq/VNcd92/MszNpWMr/oi3Sz20vUleuLuVSQNRwU4kJqkalHBd0wwd8YkKSzGJlxfbfm94P2gSE 3b5WfF4vRJsYjg2q2CU0iPgKnlPGUeUEMaDpwS0zoXeuJ9bUN56IcZh+G2O089NfH1jz6gyA/xfnF 8sMTklEtAtLuUpujibgv6m7jDbuJAeRBLcDXiIHxWGKjpWfVHnhFu8ckkvUi5vIq/We0qiSV21jDE fO2VrIgQ==; Received: from sslproxy04.your-server.de ([78.46.152.42]) by www381.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pIBQu-000EdM-4s; Wed, 18 Jan 2023 17:37:04 +0100 Received: from [2604:5500:c0e5:eb00:da5e:d3ff:feff:933b] by sslproxy04.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIBQt-00077t-QB; Wed, 18 Jan 2023 17:37:03 +0100 Message-ID: <64406c4f-c9da-b434-360b-1050ff685d2d@metafoo.de> Date: Wed, 18 Jan 2023 08:37:01 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v1 1/2] iio: core: Replace iio_sysfs_match_string_with_gaps() by __sysfs_match_string() Content-Language: en-US To: Andy Shevchenko Cc: Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron , Michael Hennerich References: <20230118074828.66155-1-andriy.shevchenko@linux.intel.com> <5f9b713b-9c71-7da6-e674-b6ebd28dc5d5@metafoo.de> From: Lars-Peter Clausen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.7/26785/Wed Jan 18 09:42:40 2023) X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 1/18/23 07:49, Andy Shevchenko wrote: > 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. I checked too, I can't find it either. The driver probably never made it upstream.