From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) (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 E603430C615 for ; Tue, 14 Apr 2026 17:51:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776189097; cv=none; b=G1M8ro5An/Y5ZejAE7aZRDPqT8dZNLwo1OCkgUcXXt65j1vsGSelXX9Dr4QR1S2Hv0XzePDXLsq//XUboMnv8mNh+CRHIHy0RLNeJAG90axOhi39R60hch2fuS+jfPNFV8HPrzv/+nixS2pto4sVU00jypZ+KUrrdtbVhOyObRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776189097; c=relaxed/simple; bh=d14NjL6TUAAsqgHD4vIJJ2NeE/xtNU7dJEoouEAWEEg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=C1UA/Oru/tC/y/T5D8Tr5U+4E0LMRL7r4hINN7HcLHIx1Y04ZXG3kO5S30SfScv13J09OxqZXZiFIOv8aI1ezATFKvi2Z7StybFkflqu2XUMEOvR5pcYPCXlx0Hv/FnxnE/QK+9EJOEYLkZnohYKwrvGYlaSgor9vrESYvlzW0s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b=n5/Y0iCk; arc=none smtp.client-ip=209.85.167.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b="n5/Y0iCk" Received: by mail-oi1-f177.google.com with SMTP id 5614622812f47-47930edbc7bso1197970b6e.1 for ; Tue, 14 Apr 2026 10:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1776189094; x=1776793894; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rwFLRWgnSYIiUfJhzR5C7sJtzSx4H5hgea7vK363pWo=; b=n5/Y0iCkj3Yo5feKGUB2eDpz0q258iXzr0R2QduLqdfgCR6yOk4dIOtr8CUOm2HgI8 Pgm4vCz0rzPSojwfntaHkYuKWjxd8dsGvYasZNRZUu5klbtWdBv9TJh7xXVDxqrW0WHo AurbDq5bp3WbzxpMQFTr4FpLXqfQB4boC30ZzMmfl4ErDVwCDD15RoD+wUMXcbzWuY2s Z+Ufuxm7UDcwnJbum9Msi7e6H0VQgBn/9ufkS0Vtcvx65L2pU4C5I6SP39bFZDdtb0+7 4UsENmYrrFlqQxj2YYOU+C8RErFV3Ou0T0y/dywCEMQhIW5qDbg/U0G/Eljhx0aBW6sn f80A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776189094; x=1776793894; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rwFLRWgnSYIiUfJhzR5C7sJtzSx4H5hgea7vK363pWo=; b=pETuBFA4iA0NeJuKo78EGDr5//jSjWYYjcAdbe9YK+9vD1T/NpI1ffxunuAi0fLmiI pa+wWN4b2LJn9c28+lIPUnw+jwgLlw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 with SMTP id 5614622812f47-4789ef07666mr9746716b6e.16.1776189093887; Tue, 14 Apr 2026 10:51:33 -0700 (PDT) Received: from ?IPV6:2600:8803:e7e4:500:5bfd:a817:5527:c417? ([2600:8803:e7e4:500:5bfd:a817:5527:c417]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-423ddb9c461sm12107675fac.16.2026.04.14.10.51.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Apr 2026 10:51:33 -0700 (PDT) Message-ID: Date: Tue, 14 Apr 2026 12:51:32 -0500 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 0/3] iio: dac: mcp4821: add configurable gain support To: Nikhil Gautam , linux-iio@vger.kernel.org Cc: jic23@kernel.org References: <20260414170309.6151-1-nikhilgtr@gmail.com> Content-Language: en-US From: David Lechner In-Reply-To: <20260414170309.6151-1-nikhilgtr@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/14/26 12:03 PM, Nikhil Gautam wrote: > This series updates the MCP4821 DAC driver to support configurable gain. > > Patch 1 fixes a spelling issue in an enum name. > Patch 2 performs a small refactor to simplify state handling. > Patch 3 adds configurable gain support using the GA bit and > adds support for writing to the scale attribute to select the gain. > > The scale attribute is used to control gain selection. Writing supported > scale values selects the corresponding gain setting. The implementation > supports all variants of the MCP48xx family (8, 10, and 12-bit devices). > Reviewed-by: David Lechner