Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1627758rdb; Mon, 8 Jan 2024 05:37:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFclFr7R+kQoXIUUXwSlknuaQr+6NpWMuXVcFT+DavAIgro9pbWeduWAfBWHiIYj5NsTHGQ X-Received: by 2002:a17:906:7052:b0:a28:b7c1:7210 with SMTP id r18-20020a170906705200b00a28b7c17210mr3832687ejj.7.1704721065778; Mon, 08 Jan 2024 05:37:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704721065; cv=none; d=google.com; s=arc-20160816; b=sDPTNfgDdXX2mMOnz+sj0b00PC4lTcGR8999TjxsNkweafJlmLIjPqtzmLDDEHWpOe f5H6ViZyYh/duskEZjxGARctSdlG95u71tABavCIjuj7Ttgs8ai0KVjnvJb0Cv85XTtV HRHGXKZ0vfSxkp7e7KNX38NtqKJTnx3XmSrXQM7FQOkmmXbWYmZjJD9a+4qYM3Uc1QjV XMi8oFw1PQedYPHQ2TQZ65Z4wWcf6hP649WTXzDEB6Ifff8Xu9v05Tl/DaPvfNY4PdBM aaKFjesxRB+EcoHt7syHDKQF1LbwuA6R6P/aIukm6VuAOUBAdc2L7Za+1YgTtqdk2JOO CS/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UKVIG+yIgX/6o/zMzpy1M13iNiwFfwfMQ9rMkqHA42w=; fh=aibYkn3gkmsg784ciP7mge48rjUiIsPSVn8E1Pwt6Fs=; b=AmMacPRfyIm70fP+gOkSmqumzne0ZtDX7nrrWsChFzTvVoSRzipRNBB6FZmlEjx76J i7S6BqtGoVKVaxP1w72iRbb3QBhRmFJAJ4GwUTi2e1BE1evMuvl02N/TnFDKM2zmkVTL VQZ9C05LzvV8mwM5uEgNScWj6TehhjU9UTa7KeXfyEGFPLRktl4dZ2KafzLFS4Pn8C1y nLA0wPp86Z0csknU8A5Sjms5dtWgCV8m6bEuFFysyeTAxV1Hrph2iQa7kgouX26EZ2Xn U9XBuUMxIh04KT8MMgFO3Uqvoffwhv7dskdpbPE8ixbb99Pg/S8CFNlcT90iO105eBlP tpTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RUqY0nPE; spf=pass (google.com: domain of linux-kernel+bounces-19628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19628-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n11-20020a170906378b00b00a27c801cc50si3289198ejc.1014.2024.01.08.05.37.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 05:37:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RUqY0nPE; spf=pass (google.com: domain of linux-kernel+bounces-19628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19628-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8180B1F2129A for ; Mon, 8 Jan 2024 13:37:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 448E344C9C; Mon, 8 Jan 2024 13:37:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RUqY0nPE" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E6E744C7F; Mon, 8 Jan 2024 13:37:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-78321045d1cso66798785a.1; Mon, 08 Jan 2024 05:37:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704721056; x=1705325856; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=UKVIG+yIgX/6o/zMzpy1M13iNiwFfwfMQ9rMkqHA42w=; b=RUqY0nPEWjIL+2pPOLpcJjhpLfRsBUlTJFF808Y1furSjiRErkrzdcf0nKF8zKbwF6 Rr2GNTMmHmCpeSA0xE29BwV5HPqzqD0tGPTzDiOb19gICCgPfkvuR5u7Rs74C3XFM9jf 9w+juXFZkgJWolJ0lNJWuLDyJ+R0SJTw9Akd23So2y5vKojvDYhKfqZFBZUgA/gTAEiK 0/WuUdpDEtUaCQKKxg0uXhs3rWX4K63LLsmlT78s7MOzvYnzL4y2IQxIQsUFQHaQ47cB NIL83QrVHk6gePi9MrL+1uq6qTq1WpyedVf9HlJZMUOpnAf8yHdnMINBSQ9G1NSy3fME 5yIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704721056; x=1705325856; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UKVIG+yIgX/6o/zMzpy1M13iNiwFfwfMQ9rMkqHA42w=; b=BPLo4PdTMvhe1va4GOmPfUIcAjUalrwSffR3QHiyJ7Zw9DTuarKzRnBpjFRspDvFeR CWM1sOvn32fN/u6dp7iP7qmoFY7fgFz6Rl99RViDqFrqO8NZbD/vfMouOy8XLYoVT436 cjf+S079FX4bFjen8RZTbEswAvHTuqj/YutRHo75FNwcBQHZ13tNfhACP/IwtEOKePqx II8RU2E0EYNFO4KekVD7vVQ/vVOUtJcXyzWYczBlGHEC3p5UFHC/oHp/EIxQqKBi6QLq vjilR5m5XSvtyCjSIZd9lpRh6oD4wnj71nEdxuOfm/L9cs1hk7rZFUyVVbOlWUNjBOCq hatw== X-Gm-Message-State: AOJu0Yy8nGNsZaUGE2b2twIi0Vd4dDf1I+b+4vw3QT4n2FyOC1vWrLuz XRakDmTKfHgZEYrlIKGPIy0s/ZUhfNPyHu12 X-Received: by 2002:a05:6214:410f:b0:681:96d:e5b4 with SMTP id kc15-20020a056214410f00b00681096de5b4mr1471329qvb.58.1704721055968; Mon, 08 Jan 2024 05:37:35 -0800 (PST) Received: from system76-pc.localdomain (pool-108-53-73-136.nwrknj.fios.verizon.net. [108.53.73.136]) by smtp.gmail.com with ESMTPSA id i8-20020a056214030800b0067ffcfb0b51sm2860146qvu.139.2024.01.08.05.37.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 05:37:35 -0800 (PST) Date: Mon, 8 Jan 2024 08:37:33 -0500 From: Mohammed Billoo To: Jonathan Cameron Cc: Lars-Peter Clausen , Marek Vasut , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Biju Das , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: adc: ti-ads1015: Use correct pga upper bound Message-ID: References: <20240106174836.1086714-1-mab.kernel@gmail.com> <20240107161524.7dc72a3f@jic23-huawei> 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-Disposition: inline In-Reply-To: <20240107161524.7dc72a3f@jic23-huawei> > Seems correct, but I'm curious - did you see an actual problem with > setting the value to 6? From my reading of the ads1115 datasheet > 6 and 7 should be functionally identical to 5. Hi Jonathan, No, the behavior was fine. When I was trying to adjust the voltage range via the pga setting, I noticed that the implementation didn't match the comment in the binding for the max value.