Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10587536rwp; Fri, 21 Jul 2023 01:23:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlEpc/Tm0WurAgm/ZJ9adXgTrpvcNMduK548R0lmKA5x5t5l7aEWXDVXn9r5nwzhCEtp8pKu X-Received: by 2002:a05:6402:799:b0:521:8777:b00d with SMTP id d25-20020a056402079900b005218777b00dmr850950edy.15.1689927827674; Fri, 21 Jul 2023 01:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689927827; cv=none; d=google.com; s=arc-20160816; b=vONktpsGZ/bFsgnVoqWPG+xAPacIOwqBcjFQDm7CdHyvdYj0ozCm5TxMcr9w0ZN2UP DOuuQA2SsQrTP2nenbnNPwYZrvlKIUXRF6X3MXIpMtP7TLq9UQmmCufQbeDdV+fOmhol QxSaXQzpIa0SAANkiFezswkcUojk0XuUQPgtMnDC0zqwYsjt0+daJiS7TxQ2sErx11PP Nev+N4qaq/+Ykhzymlji6sXB1++Ypdz3Cgnl9WaEsOtaztrB0nUd/GyNbZ39LRVmPPg8 VMfHwMdJlQOUwq5GEh4nR7t8mahSkZFOie1/FokhFQCsfyjnQ4GShVrGOviI/8pP1Mqx jYzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=z4t/JRyriN0FMhD/NauVTCFPsZukVPAxA5hvJ462aAk=; fh=a2LQsJbft13zZi1EMKa3RYwt0yCIgJr4Ogwikqtm9z0=; b=Uwo+t9B8XSW/IPQ7m9yW9OI7oFwV6sDDVn9no3YNX6YQWIZrFCmsGikCm1NFLdVGp6 yyqMfOlN21UXzTHvsMebtCjMwf6FJ57KL9RWhk5Pj13nvOJULzsQIYftuh8Uh2QQdVJL 9gxqzs2c7kdXyVzgPvHN9LRQs5AoU+oPpqO1jvENkRIh3LNJQoeo9HrXdv4lajNfDBa/ lrUK77fyLrNzVBMl9KBfduzuR7I7hCrT4eoNlIZ9OiR5JMCCTJRWyuexPMgEYsGUq1a1 RzIdXU6sbKQPCHiaBY59iuEciBxP4Fe0zTe43CLQpUkqC2a/6v6co3s40syvk2rTWTZL A8nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=GlLJh8X5; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c24-20020a056402121800b0051df8ee23f5si1992217edw.175.2023.07.21.01.23.23; Fri, 21 Jul 2023 01:23:47 -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=@gmail.com header.s=20221208 header.b=GlLJh8X5; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231274AbjGUIBP (ORCPT + 99 others); Fri, 21 Jul 2023 04:01:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230475AbjGUIBF (ORCPT ); Fri, 21 Jul 2023 04:01:05 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB1EA2704; Fri, 21 Jul 2023 01:01:03 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-977e0fbd742so258560466b.2; Fri, 21 Jul 2023 01:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689926462; x=1690531262; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=z4t/JRyriN0FMhD/NauVTCFPsZukVPAxA5hvJ462aAk=; b=GlLJh8X5gaj7ctLtJhuRMms1wHJ+JVkRViYqK+kbVg0C8iAuiBeB5n4eaNagszoPLr EPGiydBdJRTjw4n6MrRsLbfZ+GxeG8ZXt7XtlVanj5VV7HaL2DPYVrhXGWk5dSJveW/6 xJ7azmNk66p4Z1/m5fOr83JTot7vuevnmCLZvMaPF518dBFmjST+owadb5MChd0T/hWw WbiLy6riqGACzOmffnTGbcDTXSerzdhBJe/RXuRxglbCkkZCrou6CCx/Cljxz0A1Oj+5 xrZANY38p36MnBZCYchlZEoZ1p9WCT7wWTPzFwiBKLjNdgtGc4gwNAZmyxM8rYM3jL9a wPag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689926462; x=1690531262; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=z4t/JRyriN0FMhD/NauVTCFPsZukVPAxA5hvJ462aAk=; b=AngdYv5+6B+xQfMrGg/IIPRxFgXtfcCaIq9SN5X81QDcRRtRGvLk2/VEtvupqHbowB vaeIsYxxszQ/ubYGhmF7CuzlIVOLKYbxejS22GT+biieQZtsZLDl9ZNl84zT85y0+FZZ A6c+CKIfssop9hMHIvYh+KFmEfrOphHPpx12LEbddIRq+qyzIZL00T1XO54EDpmJmIqK hKo5W7frkfSW1JRyZUEeY1STROuqb6Ek3Xk8hjIlFX239ANUcMTGmxSfCFfs8WHwY4U6 UsYtwQeobXblNOvF4AwnGhqP6ualvhM2WzjgsGmERkKnqIkizMfUx5cXSjJQQqOFm2hd VSkw== X-Gm-Message-State: ABy/qLb1sZnuRr6vgfLvwmvakFSNAmidOqXbpcNg4IKwe/Z6oP0yIYP/ awfb+hXV6t/vJq+t58owQMc= X-Received: by 2002:a17:907:b0e:b0:992:bc8:58e4 with SMTP id h14-20020a1709070b0e00b009920bc858e4mr947294ejl.20.1689926461944; Fri, 21 Jul 2023 01:01:01 -0700 (PDT) Received: from ?IPv6:2003:f6:ef05:8700:f946:69a3:7954:9ee0? (p200300f6ef058700f94669a379549ee0.dip0.t-ipconnect.de. [2003:f6:ef05:8700:f946:69a3:7954:9ee0]) by smtp.gmail.com with ESMTPSA id p26-20020a17090635da00b00986211f35bdsm1784750ejb.80.2023.07.21.01.01.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 01:01:01 -0700 (PDT) Message-ID: Subject: Re: [PATCH v1 2/8] iio: core: Use sysfs_match_string() helper From: Nuno =?ISO-8859-1?Q?S=E1?= To: Andy Shevchenko , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen Date: Fri, 21 Jul 2023 10:03:32 +0200 In-Reply-To: <20230720205324.58702-3-andriy.shevchenko@linux.intel.com> References: <20230720205324.58702-1-andriy.shevchenko@linux.intel.com> <20230720205324.58702-3-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 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