Re: [PATCH v6 0/3] iio: dac: mcp4821: add configurable gain support

David Lechner
2026-04-14T17:51:34Z

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 <dlechner@baylibre.com>