Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751685AbdDBO4Q (ORCPT ); Sun, 2 Apr 2017 10:56:16 -0400 Received: from mail-it0-f54.google.com ([209.85.214.54]:35349 "EHLO mail-it0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751460AbdDBO4O (ORCPT ); Sun, 2 Apr 2017 10:56:14 -0400 MIME-Version: 1.0 In-Reply-To: <2bec8c26-f33c-d331-aa97-047871b4cc57@kernel.org> References: <20170327100646.GA8128@project> <2bec8c26-f33c-d331-aa97-047871b4cc57@kernel.org> From: Linus Walleij Date: Sun, 2 Apr 2017 16:56:13 +0200 Message-ID: Subject: Re: [PATCH] IIO: bmp280-core.c: fix error in humidity calculation To: Jonathan Cameron , Matt Ranostay Cc: Andreas Klinger , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald , ddvlad@gmail.com, Akinobu Mita , Wei Yongjun , Aniroop Mathur , "linux-iio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 760 Lines: 20 On Sun, Apr 2, 2017 at 11:32 AM, Jonathan Cameron wrote: > On 27/03/17 11:06, Andreas Klinger wrote: >> While calculating the compensation of the humidity there are negative >> values interpreted as unsigned because of unsigned variables used. >> These values need to be casted to signed as indicated by the documentation >> of the sensor. >> >> Signed-off-by: Andreas Klinger > > Looks superficially right to me, but would like an Ack from Linus Walleij. I didn't work on these calculations, only infrastructure for the driver but FWIW: Acked-by: Linus Walleij Matt Ranostay @Intel is the person you probably want to ACK it though, he added the humidity calculations :) Yours, Linus Walleij