]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad7280a: Extract chan->address bit fields into named local variables
authorLucas Ivars Cadima Ciziks <lucas@ciziks.com>
Fri, 24 Apr 2026 12:43:39 +0000 (09:43 -0300)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Apr 2026 08:58:24 +0000 (09:58 +0100)
commitd7117c14cd6b3cfdf7206395d8e9c4d7d96107ff
tree2a67f4edff2fee751f0ed3f7becd0c695c2c4c07
parentaf6dd359cd9682bff5cdd087d0982a153937b9c9
iio: adc: ad7280a: Extract chan->address bit fields into named local variables

Extract the upper and lower bytes of chan->address into named local
variables devaddr and ch across ad7280_read_raw(),
ad7280_show_balance_timer() and ad7280_store_balance_timer() to improve
readability and avoid inline bit manipulation in function calls.

Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Lucas Ivars Cadima Ciziks <lucas@ciziks.com>
Co-developed-by: Matheus Giarola <matheusgiarola@usp.br>
Signed-off-by: Matheus Giarola <matheusgiarola@usp.br>
Co-developed-by: Felipe Ribeiro de Souza <felipers@usp.br>
Signed-off-by: Felipe Ribeiro de Souza <felipers@usp.br>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad7280a.c