Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3097990imm; Sun, 19 Aug 2018 12:09:43 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxnsWQEfMfbRQH5cMikelrbToIimpUCdDy3e6XxZbDthePx/I2yFA0bXKwcxD4tETRxiy0O X-Received: by 2002:a62:843:: with SMTP id c64-v6mr45197637pfd.14.1534705783106; Sun, 19 Aug 2018 12:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534705783; cv=none; d=google.com; s=arc-20160816; b=oz8HhtXH3bg8w+NLLu0QIxN61isPB9atX8i95PfWXyA50GbBDTy3bC+tbg5+prUBc3 FpyBrXekoOPTymE4wEu7w6pCcJoLgy90U1/09pk6tKfx5XnqWpod2hiZyJKSDVvuv3Wp IDCYvJajKEjpS7cjT5AqZzSE1e8KVFpgbUT2RcCJzICCqEDRX+FhW8VlUEGD9bSezyLO a8RQVTfiRPZmQNUYA4s9xaeP9efGQx52TTrPL5u4Tb/M0foYHCTpBna5ofPbixbWGeH4 9ltXDAGb+8ArjCCZOl/AQTxCa7SCH7DsTH3/u2TJTf5CV2MV4VIDoycx+txfm44qG4T3 mgNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=tR+NUbDS2ZzmMkCM4xKKCjFKnwQhOw8rcO7jR7sH7Vk=; b=S7qwhD/PHKm16/cfUEfPX+K89/6boG+0zjBazHiinA13Z49Wbd4vX7CYv99EKHtGY1 eAwvACUNDD6C2VIo6iqtcloE2F8FvaqepdMIEA2lxiq0/atVDprNRgCZnsjmTIVJUkaK z/fcLCMcRF5ivrLSZ7Vu3oN+h+lygxQ+awG9GQ9iFBswyRVKxJpfb0gzSXxSQZahZd/8 WTpiOoycyq3xjAnPyteB++4wfdujm88zLq7zQzGhQQHb+LKtU7A+XvDrkXFUNQzNOW/E smWcFONg/Uhs7ydLHXKOikmxykYeHxMlES9glWzcMvZdXcNpvDQdU3nZxgFoa87SdaV+ Ln1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dX7fjTGF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m32-v6si7738734pgl.622.2018.08.19.12.09.27; Sun, 19 Aug 2018 12:09:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dX7fjTGF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726436AbeHSWUy (ORCPT + 99 others); Sun, 19 Aug 2018 18:20:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:54030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbeHSWUy (ORCPT ); Sun, 19 Aug 2018 18:20:54 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EEF7220C0C; Sun, 19 Aug 2018 19:08:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534705704; bh=bq+EcNxu+W33opez9wtMACq1jPoRKl90VupGfLJ4NfQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dX7fjTGF1AETq0l89bydUkhRAgK0RmAl6uJVDtvi4sPVEk2bAwXJ3kuBE/4jgFsFb W48gqSwdiMC8CBTiFctz1+ABgXG/cTU1UhBUQ/h7AOlswt7Z3UTPRq9E7FvjBDGlxF wkdnYLnSeXDNb7qe/YdlhP8MV82VTP5J3WJ/l1dM= Date: Sun, 19 Aug 2018 20:08:20 +0100 From: Jonathan Cameron To: Himanshu Jha Cc: dpfrey@gmail.com, daniel.baluta@gmail.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: chemical: bme680: Add check for val2 in the write_raw function Message-ID: <20180819200820.3ad2252a@archlinux> In-Reply-To: <20180819171014.GA13175@himanshu-Vostro-3559> References: <20180811102636.6171-1-himanshujha199640@gmail.com> <20180819172514.370d34fb@archlinux> <20180819171014.GA13175@himanshu-Vostro-3559> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 19 Aug 2018 22:40:14 +0530 Himanshu Jha wrote: > On Sun, Aug 19, 2018 at 05:25:14PM +0100, Jonathan Cameron wrote: > > On Sat, 11 Aug 2018 15:56:36 +0530 > > Himanshu Jha wrote: > > > > > val2 is responsible for the floating part of the number to be > > > written to the device. We don't need the floating part > > > while writing the oversampling ratio for BME680 since the > > > available oversampling ratios are pure natural numbers. > > > > > > So, add a sanity check to make sure val2 is 0. > > > > > > Signed-off-by: Himanshu Jha > > > > As discussed in David's patch series v3, I think this is still relevant > > but now needs an update to cover the new code. > > I already had informed David to reabse his series on top of my patch > and he rebased this patch series. > > So, it should apply cleanly without any further effort. > > If it doesn't, then ping me. Meh, was only some trivial fuzz. I thought things had changed more than that as hadn't noticed you just applied it at the top of write_raw as all the things that can be written in this driver are integers. Anyhow, applied now. Thanks, Jonathan >