Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1139180pxu; Wed, 6 Jan 2021 13:28:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXA+wVgmdekqDgfVbr0G2gRQJ8QETphUHuxAydnrjJn+cOSYb9TEIhkY+v2EYpZdBdwLRF X-Received: by 2002:a05:6402:354e:: with SMTP id f14mr5220686edd.183.1609968500474; Wed, 06 Jan 2021 13:28:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609968500; cv=none; d=google.com; s=arc-20160816; b=amrUfxeimI+ogcERHVnM5iPE2tcWHu6lsWH6ZcaWxVuM+aTtfgaTOfzddV+uHGlT6B O+BtqQlZYzLkevKkXMHzVpz0TPBwwIYrfURcjFzy8p4S2S2up3o2HTyV4NtkRGnaP4jl DiPE2o1JaRT4+1qgaIP0prXL6CKIVuul+dnFv/ybx/i4G1YP7z8+oqwjELbo6z1R0+st mtjT+Twz4U1fDEVpzX8HSWA3DhqcRauj4roIdQqviatEkKETofW0SwnHcuWH3QpNwQBc uXsRZy7h2Ns2uvHjumAKsbwyvvVkH7WlQrVP9vj3xivqtx9Hu27VqSI0G4sgCOfxUYHt G8xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=B8PYbSjV2wfSDgFPLbkumGoasg34od4IBoxCKHUJkH8=; b=zvReICLVQa4sUC2vYCM8TZXUg7xNPwjKfABFeSkKtvjEHCCAn1sNd5+44xqFtp+BUg g2YqYq7UdyvwpV+mQ84ZEL22bNr/RD+ChLdvIML5FbGYHK1Ny+qBLus7v1OL5L2f5qgW TMZ28qDKivp8cUiVzAxlQI8URkNyZHSuEZzR3jbs8zENcstk3YU4QpomiCMZS7YWjUEq nLy9L9iMJxhHGJk7UZ5XF7rhpMhYTTMf4cSQGYEG9icsv60a7zath8Kj7LWIwuv2cV2X ELATZiq02YcLIBIGYgcBqxKj+AzUxSp6wviOoM7oiQnHlVVIER81AfV8PXla3k7I2zgv 224g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=apIUtTD+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz13si1352911ejc.437.2021.01.06.13.27.32; Wed, 06 Jan 2021 13:28:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=apIUtTD+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726509AbhAFVYi (ORCPT + 99 others); Wed, 6 Jan 2021 16:24:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726484AbhAFVYh (ORCPT ); Wed, 6 Jan 2021 16:24:37 -0500 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5694AC061757 for ; Wed, 6 Jan 2021 13:23:57 -0800 (PST) Received: by mail-pj1-x1049.google.com with SMTP id q10so2770836pjg.1 for ; Wed, 06 Jan 2021 13:23:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=B8PYbSjV2wfSDgFPLbkumGoasg34od4IBoxCKHUJkH8=; b=apIUtTD+RBKMiifUBV/QOKCN1DEsE1JxgWgVOT6qWD8AmqEpUmb5loa4Kv4ZINPHLU c9FopF7c746VzG5HysQawa09pJBxSRVGswENI7gUizRFVTeRXnCKbN8qwo0k5DAjb9rv lsvzhjHh+BG75/8DjRDrJZukOkXaAGCb6bgp754HzFMLKjqVJFDE0UqT/ShNPrUdA4PB 4iuSzObdw+PZo8089ea8QbJzgWzef1jv7jflmTDfoywyC9c1Ef8zCWvV0MWmtoE166R5 5pH8TnwWr8lAI5IMwBvkSLDFmlGbEnNZ1CLE6G33H2TZUFmfkvxanTra2rm7849asVZe twhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=B8PYbSjV2wfSDgFPLbkumGoasg34od4IBoxCKHUJkH8=; b=cgExB4Nst4lZI2IyGi2Tz/F2NY//U+Y4Um9c+EQ9aiiL/iuO8xBcRYhSGOQvbqnJrY XkINp2T/10DwdT89H3Wf23KtJ/n/Ndd6v9LQjbkgn/FnhhgLUw5MVR7iVqxbYlXdD8rl CfGz/xR4jFqVwFp8VEpmA50TVooYB/BGZ+3ISdbOSsXb11zZTPe3/LZZckUmujHcdO6c 1yUiPvm2Jsv7QiXyS73TiHFVHL8vdRTyrkRgNlwyurDgzv37ZmVtG4aM4WGOtzJTqMxJ 2Y6+ystNU1bqCFTdZS1EzelBAYbfHqsZ2AuRl5qeQ2wuu4HAVbv8XGEIvQx8dgLjcPf0 Y2OA== X-Gm-Message-State: AOAM531wPXAxdfjKsa+Pi5KdXFzhuHn2lbVQ+M2pHTznYoBGzp9wdabp KlFdj5/BdD2XlJhT7XRNctTZYXWQyWyAgw== Sender: "jbhayana via sendgmr" X-Received: from jbhayana.c.googlers.com ([fda3:e722:ac3:10:24:72f4:c0a8:42b2]) (user=jbhayana job=sendgmr) by 2002:a62:9208:0:b029:19e:a15f:169e with SMTP id o8-20020a6292080000b029019ea15f169emr5832648pfd.71.1609968236760; Wed, 06 Jan 2021 13:23:56 -0800 (PST) Date: Wed, 6 Jan 2021 21:23:53 +0000 In-Reply-To: <20210106161233.GA44413@e120937-lin> Message-Id: <20210106212353.951807-1-jbhayana@google.com> Mime-Version: 1.0 References: <20210106161233.GA44413@e120937-lin> X-Mailer: git-send-email 2.30.0.284.gd98b1dd5eaa7-goog Subject: Reply to [RFC PATCH v2 0/1] Adding support for IIO SCMI based sensors From: Jyoti Bhayana To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Jyoti Bhayana , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Lukas Bulwahn Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, cristian.marussi@arm.com, sudeep.holla@arm.com, egranata@google.com, mikhail.golubev@opensynergy.com, Igor.Skalkin@opensynergy.com, Peter.hilber@opensynergy.com, ankitarora@google.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jonathan, Instead of adding IIO_VAL_INT_H32_L32, I am thinking of adding IIO_VAL_FRACTIONAL_LONG or IIO_VAL_FRACTIONAL_64 as the scale/exponent used for min/max range can be different than the one used in resolution according to specification. I am planning to use read_avail for IIO_CHAN_INFO_PROCESSED using IIO_AVAIL_RANGE and this new IIO_VAL_FRACTIONAL_64 for min range,max range and resolution. Instead of two values used in IIO_VAL_FRACTIONAL, IIO_VAL_FRACTIONAL_64 will use 4 values val_high,val_low,and val2_high and val2_low. Let me know if that is an acceptable solution. Thanks, Jyoti