Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp455748lqp; Sun, 9 Jun 2024 04:09:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWs8BP9tnz7rbXVmHomOFyXwgk8CxTN0AMD+n+GJkukSKzH55p5DOdyIM/1r9pl/ULyU+ONENhK5OwHn1JG+yUVoX7IGVTLzoTES+MIyA== X-Google-Smtp-Source: AGHT+IEo3ov8MmPlorZPn8ianQQWjBAf4UvHS9nSntNbIrSB+gHhuj6nhGjjEsGUN3QgEzpOY4EZ X-Received: by 2002:a05:622a:1350:b0:43a:f1c7:4491 with SMTP id d75a77b69052e-44041c1474amr83400391cf.61.1717931362345; Sun, 09 Jun 2024 04:09:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717931362; cv=pass; d=google.com; s=arc-20160816; b=FrRAqdiLLs3YFvDU4znRqmQkaGTENmN3Q4N/cwQM9L/vYeQeUOg5Za35D8gk5CoyiI /XmuHU+u/nz/EhscflJt2OW39046HhoE/oOT19v8sIQ75BSSdo2HoiAtmX4uUN01cxMZ me6tTQytYec3X4uK3l6cDK4ykBGWVn20SUwy9kvlaj2HxQOZr9EWCZJDze9LZUyadEgU D+icMLWFSLtbMxYTCpDIPFakNPviiNGuU+ee7vvd8qxWkxdlj+2OzqthuCVJLzpPd2jE a20uaXdIQu9Tjb07KpmZpsf+zgpuf4Sol7AGFqBH22YH03fHUFkwKy9dOxvzwqha3GqB KjzA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=KVH+GAQwbBvQXaB2KcGsO4G/gBHX+b4dnNxe9Z5MmlY=; fh=Cd8u3PZDjy+Y8BQ+XI/2jO6YK3iYo3PiYmPQg6yMRwM=; b=xtft9bhLTRzLQjn6FMZSBX20eCIjdIPzvORCXggqkD7AazHS3KPrtfhVNnmdGCWYBd 0OjA2Owq4GR8upeQdhfFNDpYAzd33Om7H6gjffeiEKQHfjQq73UbnIsCf6TxQi8Y16g0 GVRG9GEWLuN7J5tzqOjkkWs1nhXXAEpi97lMwRrwfHMgr5zgIHFD6F3ZiuRWAvi4rb11 StzanOBvqceLOUbjb18oPV8/h5FPC1uypT1PcdavImVMBNMqDSlrigyhXTw7uhI5XZNP SL0Zc0gHRYTxoiRRCxFxDFAvuX9+BxXfaLHzkDFb6pxtBbaAZNty6FLFVncP9g2j7xOn V0kQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B0guh2gv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207336-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207336-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b81767si82932111cf.754.2024.06.09.04.09.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 04:09:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207336-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B0guh2gv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207336-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207336-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 10C101C208C2 for ; Sun, 9 Jun 2024 11:09:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FC592E64A; Sun, 9 Jun 2024 11:09:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="B0guh2gv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77E8624B2A; Sun, 9 Jun 2024 11:09:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717931355; cv=none; b=M8UJ4sza+0wZ5MEXCwuGwZJSZoroEBB6eQflC+mQReBrMiVu6LS7EvCTB4rm4aFn2OPagce46eDT46/Xz1+LNMmCN9iearSp5lxCscxnjNzT8/AVFyLmmmrhslLCx2X4E7GOYlkmaIpADuo68G+P4YeaZEMYtEkmVveHJ6LXpBo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717931355; c=relaxed/simple; bh=bnKI0I/ZgBZ3bANyIua2ElOt9f9c5DpMNagJgwv4QNg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=W7QQ58yGRQNwqHAL8C8GtBCypiHM7fmbcxRg5dHoijFwyDIom9UpP3l6mh05NSVaHtyyWux2Anc+xl6NfHK5+rR5qnYgBnzBdC48HCu52fGDhnfuTQD3VWeRYYKTYaovIe4UlQTfDnwXxi7UiYcUphwOSgijoU+67z7jhITJVZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=B0guh2gv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDC7DC2BD10; Sun, 9 Jun 2024 11:09:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717931355; bh=bnKI0I/ZgBZ3bANyIua2ElOt9f9c5DpMNagJgwv4QNg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=B0guh2gvOQy034WXmgsAnoWR4XXyopwCoLjdvLq3K9ywaU16VOwrWBNrCeirN3mR9 zpJn9JHmfr2ZKU5L9fa3QmNdM2dXYIBKbHKbFBmQTCB/GGOWymnD0ABTqRUaL/ByVs xo5/1klQIIpnaWhZkYRdzXv9+dK6h6IMYWJ8QVkNzVpZtAR+9eWg/58olQKYwm5Y3S 2yzTmfUmRS80QLEQPOvevIePXpnqPZOuXswLb4dR/ULdiBkuVTxt9ATf36BPqfaYou jQ5kdirpdlbeLWqkcZTbyzdY09W67KjRmb8vle7NzmSmNWrZNqLkc5/+6DGKMLw8rf xONpwKuqtWHIg== Date: Sun, 9 Jun 2024 12:08:46 +0100 From: Jonathan Cameron To: Vasileios Amoiridis Cc: dpfrey@gmail.com, himanshujha199640@gmail.com, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, mike.looijmans@topic.nl Subject: Re: [PATCH v2 17/19] iio: chemical: bme680: Remove redundant gas configuration Message-ID: <20240609120836.269584b3@jic23-huawei> In-Reply-To: <20240606212313.207550-20-vassilisamir@gmail.com> References: <20240606212313.207550-1-vassilisamir@gmail.com> <20240606212313.207550-20-vassilisamir@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 6 Jun 2024 23:23:11 +0200 Vasileios Amoiridis wrote: > There is no need to explicitly configure the gas measurement > registers every time a gas measurement takes place. These are > initial configurations which are written in the beginning and > they are not changed throughout the lifetime of the driver. > > If in the future, the device starts to support multiple > configuration profiles with variable heater duration and > heater temperature, then they could become members of > the ->read_avail(). Similar oddly short line wrap. Fix them all up for v3. Thanks Jonathan > > Signed-off-by: Vasileios Amoiridis > --- > drivers/iio/chemical/bme680_core.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/drivers/iio/chemical/bme680_core.c b/drivers/iio/chemical/bme680_core.c > index 1cf375904b8d..76b96993120f 100644 > --- a/drivers/iio/chemical/bme680_core.c > +++ b/drivers/iio/chemical/bme680_core.c > @@ -683,13 +683,6 @@ static int bme680_read_gas(struct bme680_data *data, > u16 adc_gas_res, gas_regs_val; > u8 gas_range; > > - /* Set heater settings */ > - ret = bme680_gas_config(data); > - if (ret < 0) { > - dev_err(dev, "failed to set gas config\n"); > - return ret; > - } > - > /* set forced mode to trigger measurement */ > ret = bme680_set_mode(data, true); > if (ret < 0)