Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1999619pxp; Mon, 21 Mar 2022 09:12:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhLu17puYcGIgKpq7qs6CylytzZVWPfbGN/v8tC2YQ9xCnU7ZJXLA8Tdru1XgIijljLwum X-Received: by 2002:a05:6a00:1824:b0:4f6:9b4a:4a with SMTP id y36-20020a056a00182400b004f69b4a004amr24710326pfa.8.1647879179442; Mon, 21 Mar 2022 09:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647879179; cv=none; d=google.com; s=arc-20160816; b=gH2oTwfQ8/h21g49N57nwPX7m933Yl/GBsaRRUaN5jJiUfuuAYMmFgLt28lIgF4QG3 DdpCiZzwEDCBZxPp37Iw+wd4IHs0b7cJ6DEYFW3w7PqV6E8D9RCOIIdnxxJOSnu6wkaE sTruSA8D63qnSTMEM4My7MvgDk4HbJ+WDa/Hrj0zNjf536QhGhGD/DJePV5iopkEMkOW fN/3O7LH0vecA39JJfaAGHas38i89rBTsGLu/UvF6qxgbkzK0GQn9BHv9VvgttmNvhkK XH0DpqreoRMmlgn84WyKGC7HB42EuIow4bK6i+fob0lyvkCh968j22t2Oz0sW0eXBTgg IsqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=4eyuItiM/A2/gLReN5fqpzJcJZBVqcz5QpX+I81RvDQ=; b=BdbJFUvKDKWEXc1/MgB6/dt+5TP/LA3Ws4KNLFW/duAmrCfpj5xBE7yAzJ1DPzB/+M o9YRxTUPGz8LiIYky3/gBBu1b1omryNvLaoY9McRJqxZDic4dr6W8ZFaoEGwuFNWarCZ mnFZI/Ii4oId0M+5p2GxTrtGFlnLBR2euU0+0/EZ8DOypoz+NFvLM2zGOQ7MZjYSHtIT 6Btps84yoDK5GnztMXvzFCLqW/KCQMlIik6kiSiwQFE9I2gYPgWY2s6ZPEI6RwZaWTjZ DELGgWueQlu8qJhe8/WsqAxpMEjI25iXg+5O/nnL2WPKO29xrcyHzoYErx8fkQPgWUum YzeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ITbEe0sp; 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 p21-20020a170903249500b00153b2d16483si10271788plw.139.2022.03.21.09.12.40; Mon, 21 Mar 2022 09:12:59 -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=20210112 header.b=ITbEe0sp; 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 S243799AbiCSSL5 (ORCPT + 99 others); Sat, 19 Mar 2022 14:11:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243768AbiCSSLy (ORCPT ); Sat, 19 Mar 2022 14:11:54 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B84E8FE60; Sat, 19 Mar 2022 11:10:33 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id gb19so9933036pjb.1; Sat, 19 Mar 2022 11:10:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4eyuItiM/A2/gLReN5fqpzJcJZBVqcz5QpX+I81RvDQ=; b=ITbEe0spxcop3l4lw8f2wpC83b6CpC/c3HCA2ypD6PvqkKpXl1wnaGJ1EmBSk8Py/D udHlBKrBmHneKEIPQQweHCVDaUtOIFR3EnjaGZ5qXMPvMVLG6hGuzM/GHbBXFZosnYb0 2xe9Mh73bEN5AwPZNZJYQrAb3ryrNG0IRtuDU9W2T8Qq80fosOytRN46rDxtKt8uFErN W5qCFYbDnXNcyACG0UFpmTWtH2zroHLvpYF+lVmrk7qngNZ/Zn0tUi+hFgN5+K44SF1G LkpezG8ZVBj5Y5xi/lXqck5ZcsJSxtQcoGevlLLFzhWpRBwltOj33qKYpy2yOf6cSmat R4VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4eyuItiM/A2/gLReN5fqpzJcJZBVqcz5QpX+I81RvDQ=; b=fkAEYzpVYdtP4RVa594qG/CbxY1zf49dFbnKQj/aU8RVlfSX0XyGI07g24+8VhIqvJ hcZRVVJI2bpxYL7cGXgGNDRHmHoMJUTIbV0WTc9FrO7NiRyJCcE8DJfBumm+yDcUhOku cx7jkHRjmvICtBdXhmGJO7gK5EVczemlYW1IKj9L2RpASw1MeSWq2BR9AC332Zp6e8Ko IBxdAn36e6XmistfWL7Toe6AFRmn0SwU/KNDd3K6aP3VnCwXk0WCA6+MQJvFmC9UsKi4 ogyc2pcNIzNIrpAz39CaBlZo/hQKIEagk5XlvJY1DAPd+1pMqMLhdrSzOCVR01+y+5N8 +uWw== X-Gm-Message-State: AOAM532V4papImBSfjHLmz2BTOTOB5B49/Om3+m1JLtOofVsKZOL0rYj TOokwPCpc76y1B22aC+otks= X-Received: by 2002:a17:902:e78f:b0:153:29c8:5395 with SMTP id cp15-20020a170902e78f00b0015329c85395mr5285082plb.55.1647713433068; Sat, 19 Mar 2022 11:10:33 -0700 (PDT) Received: from localhost.localdomain ([115.99.145.231]) by smtp.gmail.com with ESMTPSA id nu4-20020a17090b1b0400b001bf497a9324sm16413981pjb.31.2022.03.19.11.10.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Mar 2022 11:10:32 -0700 (PDT) From: Jagath Jog J To: dan@dlrobertson.com, jic23@kernel.org, andy.shevchenko@gmail.com Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/5] iio: accel: bma400: changing scale min and max macro values Date: Sat, 19 Mar 2022 23:40:20 +0530 Message-Id: <20220319181023.8090-3-jagathjog1996@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220319181023.8090-1-jagathjog1996@gmail.com> References: <20220319181023.8090-1-jagathjog1996@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Changing the scale macro values to match the bma400 sensitivity for 1 LSB of all the available ranges. Signed-off-by: Jagath Jog J --- drivers/iio/accel/bma400.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/accel/bma400.h b/drivers/iio/accel/bma400.h index e938da5a57b4..cfc2c9bacec8 100644 --- a/drivers/iio/accel/bma400.h +++ b/drivers/iio/accel/bma400.h @@ -83,8 +83,8 @@ #define BMA400_ACC_ODR_MIN_WHOLE_HZ 25 #define BMA400_ACC_ODR_MIN_HZ 12 -#define BMA400_SCALE_MIN 38357 -#define BMA400_SCALE_MAX 306864 +#define BMA400_SCALE_MIN 9583 +#define BMA400_SCALE_MAX 76669 #define BMA400_NUM_REGULATORS 2 #define BMA400_VDD_REGULATOR 0 -- 2.17.1