Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1756774rdb; Sat, 2 Dec 2023 08:07:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEI24M1pGse0Xg3VP1E3Hkx+hQX9UJg74CPhiURvtJnJuPHl9U2RpfiEkI94hA/BXGjbtYK X-Received: by 2002:a05:6a20:3d90:b0:187:e3e8:e8d4 with SMTP id s16-20020a056a203d9000b00187e3e8e8d4mr1932775pzi.53.1701533221219; Sat, 02 Dec 2023 08:07:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701533221; cv=none; d=google.com; s=arc-20160816; b=vkksvebYvvQCsUjWfHuZ6LQ6i9fxWa+cwWqrfx7TyUCliADQeXdQRFoFZ/1aSiz5Jf UwgXaZCGHA7JL+vQE+Nz0ZvmqTw2umRJrK1i3hjktwmdWqRixprKG7H7i6kLSE3/zAyX 2gXUX8pFnZhl3fdN1l36g/x5iHx9v6o7fTWuJjMv9luUxa7Js0jCdKk6EEonu6Ntkouz eEOZwLWJ+o07qKKH+uro517ejV7M/8wVPg1ARbgmeMly7tXSR9UYV2/JDtyHwctK/ETo GJYCjKk6pm3iMsB9vPEo9sMl40LdxiQULcqVRNC5bGQGnlT4pjy7HC+mol+kTkrUKS8+ qwjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PQQWwa4KeZuRcePozlSoltwCrHOItVTlhFJBcYn6MF8=; fh=CalxqnSLS88wzVzIAabzKUkNEkFzm2JQdM+g5DNvClM=; b=UNMIx2cHOzU5n7wWyYlym7mSxvHQ9SZhEnN924ykVlmeRQk7DZMDe9iTi9v9egTeow 1GYr5fKAfQwYyRDGzbd3ZOx1BwGTPugLIkmoITJVy3PNmt4QwRZG14z0dUNBMmME4k/T QiLIaGUcqsTp8fKOl0LNHvPDaKt/zim0U4ZnTqGiCaROE4pdvAmOem36TTISa2KOoadO Ytm+vADtTcqmD7j0waT4BytJZhoEQvOnvJGLZzNnZaQ2zUeT4eiK9y8vY4TmcftB1ZrH oBbDtWRVJ6ZDpaMwgdqJsZ2pDB3+tLP+LpwlpoLZdDNyfZFJZ14MfC7pM1OPHOdUuG4N FCtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@subdimension.ro header.s=skycaves header.b=ehks+CGb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=subdimension.ro Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id c6-20020a656746000000b005b935872b48si5364984pgu.537.2023.12.02.08.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 08:07:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@subdimension.ro header.s=skycaves header.b=ehks+CGb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=subdimension.ro Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DCCFD8081F6B; Sat, 2 Dec 2023 08:06:38 -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 S233102AbjLBQGW (ORCPT + 99 others); Sat, 2 Dec 2023 11:06:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjLBQGV (ORCPT ); Sat, 2 Dec 2023 11:06:21 -0500 Received: from mail.subdimension.ro (skycaves.subdimension.ro [172.104.132.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C3899D; Sat, 2 Dec 2023 08:06:27 -0800 (PST) Received: from sunspire (unknown [188.24.94.216]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mail.subdimension.ro (Postfix) with ESMTPSA id C714028EE6F; Sat, 2 Dec 2023 16:06:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=subdimension.ro; s=skycaves; t=1701533186; bh=c3izzflbnvnQn9mjCeWPVgU2PPYA3ayk9O3r2CAxXv0=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ehks+CGbwv0HvlAuZ+sK1gITTW0vqSbQgBld22yXaTw+YjPb5kPz+p3Tfftalwv8s 0I+EALbISNyjTrK4GX2du0dV0o1BLwcFf7Hk1IMPoIlQ1u4en9GfWhrBhTIBo5rio5 cDjUuSNPCKylXqnLAKrFZ6JhAW6ke09bwgajsOHI= Date: Sat, 2 Dec 2023 18:06:24 +0200 From: Petre Rodan To: Andy Shevchenko 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 v6 2/2] iio: pressure: driver for Honeywell HSC/SSC series Message-ID: References: <20231129170425.3562-1-petre.rodan@subdimension.ro> <20231129170425.3562-2-petre.rodan@subdimension.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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]); Sat, 02 Dec 2023 08:06:39 -0800 (PST) hello, On Thu, Nov 30, 2023 at 03:33:02PM +0200, Andy Shevchenko wrote: > On Wed, Nov 29, 2023 at 09:12:52PM +0200, Petre Rodan wrote: > > On Wed, Nov 29, 2023 at 07:24:31PM +0200, Andy Shevchenko wrote: > > > > 437: ret = device_property_read_string(dev, "honeywell,pressure-triplet", > > &triplet); > > [..] > > 455: ret = match_string(hsc_triplet_variants, HSC_VARIANTS_MAX, > > triplet); > > if (ret < 0) > > return dev_err_probe(dev, -EINVAL, > > "honeywell,pressure-triplet is invalid\n"); > > > > hsc->pmin = hsc_range_config[ret].pmin; > > hsc->pmax = hsc_range_config[ret].pmax; > > > > triplet is got via device_property_read_string(), is there some other property > > function I should be using? > > I think I mentioned that API, but for your convenience > device_property_match_property_string(). one of us is not sync-ed with 6.7.0-rc3 :) cheers, peter