From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F725C433B4 for ; Thu, 22 Apr 2021 01:20:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CA33461435 for ; Thu, 22 Apr 2021 01:20:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235383AbhDVBVa (ORCPT ); Wed, 21 Apr 2021 21:21:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233038AbhDVBV2 (ORCPT ); Wed, 21 Apr 2021 21:21:28 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7B95C06174A; Wed, 21 Apr 2021 18:20:54 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 4so9719179lfp.11; Wed, 21 Apr 2021 18:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DteZ2nWiSB1ODY2173dhIvFCb3CtLxUhJ2lFgomQ3T8=; b=sbHJ/r/nqJ8hUrngDEmyPCSWcbXH/Um57a/9Cymi3uJbxqDiBEfBvr9Y4VwvpwrJ7Z T15AajeH3gOE3zmTzzficptb6y91bIhNXnTe1zS4QP0WKpfom3c97Q/dQ4s3sAYIE9wg R4yv+eCUZE5zg/Epkwm03uUy+jwHVqz0CEs2QpyIeUnpMpf9iJ/rNYmKkGlTTOpkcYr9 TzdMiNqI8V96xE7DymK+lJMC/zUUCuK+liFMeXR8ovmxPToFMkPi4LqADjh+N4jvtolG DShN4pWFpUzUCEa6kLt0HOf7ZHJBPdLr9cjSk4zkPuEsgjH++eOG4TTbEjp9YKxVI3cB x+Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DteZ2nWiSB1ODY2173dhIvFCb3CtLxUhJ2lFgomQ3T8=; b=pKYtTggqxmcIKBOiPVlYxhSkMXFYG+zcfvWJRQqqqZCLchKcUVQKEk8fWF46IKph4J 7wnoHZoWE8EatH+27Ok1zsHQg6FGG3dFClMjTLqqp5G3pTLSgmMVYgrf1W3wZLl8+Ahe 6ePKXilY4FHvjbkaRtzujPeexQ9ESg4OGlzL+fi+CPEz5BCujfKswiBbaN3GRBjfr17v O7+rtv0vecI/Aw/2tz069sFUygNUKIqFd4s9Q8FtUs93ZMwnMf4LCAhcWDP1Nobrfpge VoL9oHwAaVByP5kMK0YZfQT9sg+TDGrdLDnpz83IjPGW7BJtinmFxJUDKLIozteLftrn afJQ== X-Gm-Message-State: AOAM53235My5QwgXVFlu/C4yNAvlgrp6RGu7fz4bLApezLY8VQAhEsdb rKB5R3/Zo+NhPUirVTRxohfP33Fc+fg= X-Google-Smtp-Source: ABdhPJxN4KSYM+z6XfNnvBFfEgaDpvZHIsNsDonEkjeTTWLxxO0b7pIW9+mC9y+ka6AatjmiW0/3GA== X-Received: by 2002:ac2:499d:: with SMTP id f29mr645481lfl.337.1619054453382; Wed, 21 Apr 2021 18:20:53 -0700 (PDT) Received: from [192.168.2.145] (109-252-193-103.dynamic.spd-mgts.ru. [109.252.193.103]) by smtp.googlemail.com with ESMTPSA id f11sm111151lfr.119.2021.04.21.18.20.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Apr 2021 18:20:53 -0700 (PDT) Subject: Re: [PATCH v1] iio: gyro: mpu3050: Fix reported temperature value To: Andy Shevchenko Cc: Linus Walleij , Jonathan Cameron , Lars-Peter Clausen , Maxim Schwalm , Svyatoslav Ryhel , "linux-iio@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20210421234820.32211-1-digetx@gmail.com> From: Dmitry Osipenko Message-ID: Date: Thu, 22 Apr 2021 04:20:52 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 22.04.2021 03:34, Andy Shevchenko пишет: > -                       /* The temperature scaling is (x+23000)/280 > Celsius */ > +                       /* > +                        * The temperature scaling is (x+23000)/280 > Celsius, > +                        * where 23000 includes room temperature > offset of > +                        * +35C, 280 is the precision scale and x is > the signed > +                        * 16bit integer which corresponds to the > temperature > > > “...16-bit signed integer...” >   > > +                        * range of -40C..85C. > > > > Datasheet says -30°C..+85°C. Datasheet says this for the "Best fit straight line", while the min value is -40C.