diff options
| author | 2022-06-26 13:29:29 +0100 | |
|---|---|---|
| committer | 2022-08-15 22:30:00 +0100 | |
| commit | 9eee2fc4a670d70ded6cc88c42d760338ce96918 (patch) | |
| tree | 09624652f2b762cc327d0cbaec07315c1d4943b7 /include/linux | |
| parent | staging: iio: cdc: ad7764: Push locking down into case statements in read/write_raw (diff) | |
| download | linux-dev-9eee2fc4a670d70ded6cc88c42d760338ce96918.tar.xz linux-dev-9eee2fc4a670d70ded6cc88c42d760338ce96918.zip | |
staging: iio: cdc: ad7746: Break up use of chan->address and use FIELD_PREP etc
Instead of encoding several different fields into chan->address use
an indirection to a separate per channel structure where the various
fields can be expressed in a more readable form. This also allows
the register values to be constructed at runtime using FIELD_PREP().
Drop the now redundant _SHIFT macros.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220626122938.582107-9-jic23@kernel.org
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
