Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4609542rdh; Wed, 29 Nov 2023 06:17:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHtk88PF9UknpH8Ho//AvSwXeKgyURNzcfLpMXtTqFmnIQiqNlT+i3hyqv8X5ZX3LwQqbiK X-Received: by 2002:a17:90a:35d:b0:280:e2e1:f955 with SMTP id 29-20020a17090a035d00b00280e2e1f955mr19902740pjf.35.1701267441130; Wed, 29 Nov 2023 06:17:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701267441; cv=none; d=google.com; s=arc-20160816; b=kZW1clOwRglYSD1wz8fDNfRZ12Gz/ZH5Xts2TknsesSEtpcGpLzmP+p+ZmUT217JUk Suf3m3yfCoGLpLDs+IOZ36cFNoh864AfqXS39OR4CLC60E7IsfQTwFrugqsBElN8OOiT hHsVLPiQdPkbEDRQj9QCHug99AOqKwCI5FnJ6zmpfPemWLvliLLXGHDLzlJcPxxzrQIM SGFAUUy6pALyIqqVRZKevfA+nQlQXFSPD+WtwhbWSat/e1546K0X+YM5j9AWUTY9I4fo cqK9M2STNaVpSBV62zTMlQeHoZr+6nX3YXF/7n+I0kh9ZZi8i/Rv9veA8PSirfyjoxDQ l0pg== 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=at8FL27v1CXr/svpnH8CB3E5l8RANn/VPADWxL5o6XY=; fh=NLsHMCkW9oUPGVAUwi4YjxY06qY4Y90bV6UHFXN6ohE=; b=x319iJZ8HOA2CKYAF84YARmGkYSf1y5isItclRMNIeqbvTWEIwRcTZDo5K4SJq8sUc gSBc2mWnnp7WCT+QxaRlAxWqLQt/NyA31ziaNwJr49/jUg9thDvO2z1wBG14Tdqlma9Y G7flxnm94HZ2zcEuCUHP8AjfCM+Jtz2gGOTsxD3M5Okmdj8qH5pj33dg5XmC2Z+kEZ8G XztNZXPtXSRx68NeTefez6pnXtEL6dh9ooE902P92kdZtl8MiP7QWjM9qewdstzCRIeT 9S/6OA9HbMPezbtIORl0RW5eQdfcDyMtabPJDgMiWLfTbMr2p6IverN2R5EHmf9kJun8 /Iow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HUNl8vMT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id bt24-20020a17090af01800b0028065b30a0dsi1365590pjb.124.2023.11.29.06.17.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 06:17:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HUNl8vMT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DBDB3807C5EF; Wed, 29 Nov 2023 06:17:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230498AbjK2OQ7 (ORCPT + 99 others); Wed, 29 Nov 2023 09:16:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbjK2OQ6 (ORCPT ); Wed, 29 Nov 2023 09:16:58 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41E82AF; Wed, 29 Nov 2023 06:17:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701267425; x=1732803425; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bhjXUMgXeV40oruQhYztJWCViluwOW0nwAoxxNUPFrw=; b=HUNl8vMTV3IZ194T+u9vY4wD5vGTgocJltBtWlLWGeVj7yHkwb8W6iSp OPLwbHS3K3MEskLNYF7qSM+CY1XwC2nUaCoEqqOf0sjUTVNP9H63w3Zqg 90eVq0nIK8XsRpoawziBHfZYnkXslB/oXy4jvqIZeOWbMqXvidbPpjiZj tZeR0WYMfichk8ksd9cYSkjSY5SF11ZTOtGJhLeyb2TNzubKhMybaiXTN k9XqvHJL0ZGfXZUjU7+jg+9Y7EaSd5nsttjLu9is9cEf5CEaYlePF96ef H/uB1JN449c8Qpy0NF5kZ5f1e/wPQbL8jCNY8PCfv9LOYGfBci6SSnDP8 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="459665555" X-IronPort-AV: E=Sophos;i="6.04,235,1695711600"; d="scan'208";a="459665555" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 06:17:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="745272986" X-IronPort-AV: E=Sophos;i="6.04,235,1695711600"; d="scan'208";a="745272986" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga006.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 06:17:02 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1r8LN5-00000000SV2-0AMp; Wed, 29 Nov 2023 16:16:59 +0200 Date: Wed, 29 Nov 2023 16:16:58 +0200 From: Andy Shevchenko To: Petre Rodan Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , Angel Iglesias , Matti Vaittinen , Andreas Klinger , Rob Herring , Krzysztof Kozlowski Subject: Re: [PATCH v5 2/2] iio: pressure: driver for Honeywell HSC/SSC series pressure sensors Message-ID: References: <20231129070452.1521-1-petre.rodan@subdimension.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 29 Nov 2023 06:17:19 -0800 (PST) On Wed, Nov 29, 2023 at 04:14:59PM +0200, Andy Shevchenko wrote: > On Wed, Nov 29, 2023 at 03:51:54PM +0200, Petre Rodan wrote: > > On Wed, Nov 29, 2023 at 12:36:46PM +0200, Andy Shevchenko wrote: > > > On Wed, Nov 29, 2023 at 09:04:49AM +0200, Petre Rodan wrote: ... > > just to have the privilege of using match_string() on hsc_triplet_variants. > > now, which is worse for maintenance? a handful of lines of code that do a > > loop of strncmp or the clutter depicted above? > > > > I can go either way, but I want to make sure you see where this leads. > > That's the suggestion, yes. Btw, if you have any idea how to make a generic API that suits your and similar cases, I'm all ears! -- With Best Regards, Andy Shevchenko