]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ad7192: fix GPOCON register access annotation
authorStepan Ionichev <sozdayvek@gmail.com>
Wed, 13 May 2026 10:13:32 +0000 (15:13 +0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:40 +0000 (10:59 +0100)
commitb049fb4081527c8d52834c46cef38c0bb65468ed
treeb2e0bb555690f1dc7ee4a6b3fc7b5a06bac2307b
parent469ad4d50fb34dc9abc9a47f879f7c07be614ae1
iio: adc: ad7192: fix GPOCON register access annotation

The comment next to AD7192_REG_GPOCON marks the register as RO,
but the AD7192 datasheet (Rev. A, page 24, GPOCON REGISTER) says:
"The GPOCON register is an 8-bit register from which data can be
read or to which data can be written."

The driver itself uses ad_sd_write_reg() against this register in
ad7192_show_scale() / write paths to control the bridge power-down
switch and digital outputs, which matches the RW datasheet
description. Update the comment to RW so it does not mislead
future readers.

Signed-off-by: Stepan Ionichev <sozdayvek@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad7192.c