Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3199670pxa; Sat, 8 Aug 2020 13:07:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxH+dXb0o9KVUVVyAPkHVq6PT6BZvl6yvS+qp9EpGj3RlsZhmWry8WHOrnQMX7rfhmHHVAN X-Received: by 2002:a17:906:ce37:: with SMTP id sd23mr15834389ejb.272.1596917273143; Sat, 08 Aug 2020 13:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596917273; cv=none; d=google.com; s=arc-20160816; b=fXDsCt1cm8B05P2n7J01hCNxeHKX9XMoACVNp6cePpUOKcVV8APJiea5qaKmle/ZqG TaLYcIHQpMcd6wFa+EKm1lI6uzhSnfsIRtqpUfLwr6H+oIa0N9FpGm4jMNkqUMM6kiWR 4bhJOidRGZ0sQLw+okr13gmENS6NVu/BtLxRa4+kvV1Rpz6Rc7RieRuAyQaSLYaqzS7d jlCqz+jE4YGMkmdaDYbvg+2F/d+jm8RQc2fZQ5+BAMUMz/zUY7zYBSLHtmflZ4WFtsZU ybzs4i0P/qvTjA1T8rz6Bm/ZfKIiAb1HFz2f+livi5JL5dBlT67cFsmM5DcfXPjCaBFb +crQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JvgM3A3AS88B6CE2Iu3gBSdhU33dVCIZM65D3EoVHxY=; b=gTqs+G3K5Jj3vFImmPe+un1LfmdZlIdoz/kGqQXV38JPsmM3CR4jUtp+DDbjOIuRGd 8yvTrW1md4xvtLVoG3iDvQxLqpkb5Q2tNqIIxDptm+n9gHoCe87utS5COYs64+T5MyHd s9Dvfv1tdi/YkStMNgSwgJfVj20kGQYn89vVpGHxde7Vebxqbc1RZOkFYzF2iCeDzGbo IlW93dZ4BoZ85UprSS5SNrmlCI4VeuaIZ9xOaNolqZQl3WqKFzSXRN1R8rGfmvWtLTdN ya1AH1RBnm9ookhr++S6JghPUoyDa7/IDFae+/tg4xjq992jPtFjl2klT+hr8BMQMiMB uGlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SbGD0rkx; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si100901eja.145.2020.08.08.13.07.29; Sat, 08 Aug 2020 13:07:53 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=SbGD0rkx; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726352AbgHHUEy (ORCPT + 99 others); Sat, 8 Aug 2020 16:04:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbgHHUEx (ORCPT ); Sat, 8 Aug 2020 16:04:53 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C36AC061756; Sat, 8 Aug 2020 13:04:53 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id m34so2722620pgl.11; Sat, 08 Aug 2020 13:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JvgM3A3AS88B6CE2Iu3gBSdhU33dVCIZM65D3EoVHxY=; b=SbGD0rkx1uJDTMiCBpeKCB/P+vZ82WPSbfb7MgqDBp8nEtGo9Eh0THBRBNwnmGOqyD s1ZuFjI3XheWb9s36eAgdjE3QbRiNDs6Z3XkRyA2r307QVx+OPRP0JZk0ZoUJhAiG/kW usj22LVY6WNxqjEcEiTS2OVJNX25gsWeWSNsvBVsoYI7scX5QxczkZzT02tAc3ZgJ8Fs BLNISdfmTzZYKZr4qxagm+VLlpUBu1N8oq3mK9lkUYH9bbr9c4k3Xle8U4wmbYQ8X+JL MNSAnfkZoiSScV7gA0FNVWYL5a0l/LjMHp2aK2BFlF+fhujfc5T5YcESrkVSF7jGtAMf E5Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JvgM3A3AS88B6CE2Iu3gBSdhU33dVCIZM65D3EoVHxY=; b=fv9UXyUcc2BF0aWxYiAxnagOjIIkleOTsrHWY4MlBgo0XA14813AUddEyKyAqSXmIh U5XwqZZ4BcvkyQ72Cjh1LnC5xjm/fXj/wTQ7/Cpxuh1u4WJD25oNrRFazxNv+1n1WYQS pFUzFv7rd7QBdqhhruGvjcv7pj0yqyeY3yni2m/0nZMz8DvuiNNvdIKniNFueX59cbpZ x9zmVjriiH5bkK+NgHf3FJwdEur0Qp+6Rnwdl2sxLI/HLBnZRQSiW0gg3XwN2TiaGQWI iH16E/QRFmRh0eP3JugPoDlH1FkAJxgRAkJYdAFXqTkFl4LVFLuzmia0tJx/1+i1asKV 1KoQ== X-Gm-Message-State: AOAM532/ZzkGgj04dMcj/9wFTe0lHUhkmM91OFhEex4sJ6GTAB9ZfNuF T+ARYUiiMx0kXMKrBpHqV4H9DzMMc2stJquhoQk= X-Received: by 2002:a62:7b4e:: with SMTP id w75mr18362478pfc.130.1596917092580; Sat, 08 Aug 2020 13:04:52 -0700 (PDT) MIME-Version: 1.0 References: <20200808121026.1300375-1-cmo@melexis.com> In-Reply-To: <20200808121026.1300375-1-cmo@melexis.com> From: Andy Shevchenko Date: Sat, 8 Aug 2020 23:04:36 +0300 Message-ID: Subject: Re: [PATCH v4 0/4] iio: temperature: mlx90632: Add extended calibration calculations To: Crt Mori Cc: Jonathan Cameron , linux-iio , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 8, 2020 at 3:10 PM Crt Mori wrote: > > Since the second patch is dependent on the first and was still not > merged, I have decided to send them together. First patch just makes > second one more readable as it splits out the repeated calculation and > that enables the second patch to tweak the variable to the new > condition. > > V4 review comments from Andy Shevchenko : > - Move the function creation for Ta4 to first patch > - Add kernel doc patch for documenting internal struct > - Add patch to convert while loops to do-while loops for > polling > > V3 review comments from Andy Shevchenko : > - Change commit message text to more proper English as per suggestions > - Drop unneeded brackets and parentheses > - Use defines from limits.h > - Remove userspace typedefs as leftovers from porting > - Testing of timeout loops with iopoll.h was no successful, > because delay between measurements is 10ms, but we need to > fill at least 3 channels, so final timeout should be 40ms > which is out of scope of usleep function > - Fixing some typos in comments > > V2 review comments from Andy Shevchenko : > - Convert divison back to shifts to make it more readable > > Crt Mori (4): > iio:temperature:mlx90632: Reduce number of equal calulcations > iio:temperature:mlx90632: Adding extended calibration option > iio:temperature:mlx90632: Add kerneldoc to the internal struct > iio:temperature:mlx90632: Convert polling while loops to do-while > > drivers/iio/temperature/mlx90632.c | 251 +++++++++++++++++++++++++++-- > 1 file changed, 236 insertions(+), 15 deletions(-) > > -- > 2.25.1 > -- With Best Regards, Andy Shevchenko