]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: dac: ad3530r: Fix AD3531/AD3531R powerdown mode strings
authorKim Seer Paller <kimseer.paller@analog.com>
Tue, 5 May 2026 04:34:32 +0000 (12:34 +0800)
committerJonathan Cameron <jic23@kernel.org>
Fri, 15 May 2026 11:05:35 +0000 (12:05 +0100)
commitebd250c2581ec46c64c73fdfa918c9a7f757505e
tree4167dd90c484cc202e2ed7bb368cdc9211e15f4e
parent6f5ed4f2c7c83f33344e0ba179f72a12e5dad4a4
iio: dac: ad3530r: Fix AD3531/AD3531R powerdown mode strings

The AD3531/AD3531R has different output operating modes from the
AD3530/AD3530R. According to the AD3531/AD3531R datasheet, the
powerdown modes are:
  01: 500 Ohm output impedance
  10: 3.85 kOhm output impedance
  11: 16 kOhm output impedance

The driver currently uses the AD3530R modes (1k, 7.7k, 32k) for all
variants, which is incorrect for AD3531/AD3531R.

Add AD3531R-specific powerdown mode strings and assign them to the
AD3531/AD3531R chip variants.

Fixes: 93583174a3df ("iio: dac: ad3530r: Add driver for AD3530R and AD3531R")
Signed-off-by: Kim Seer Paller <kimseer.paller@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/ad3530r.c