diff options
| author | Antoniu Miclaus <antoniu.miclaus@analog.com> | 2026-03-21 13:04:56 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2026-03-21 14:19:02 +0300 |
| commit | 23d742859a2dd20b1e96ab0828fa26227c47f328 (patch) | |
| tree | 3fc664cd2898ec778ed9b4179dad3be35d3b3f85 /include/linux | |
| parent | 8c7440c686091a109802a720db25224dcc21485a (diff) | |
| download | linux-23d742859a2dd20b1e96ab0828fa26227c47f328.tar.xz | |
iio: accel: adxl372: introduce chip_info structure
Introduce a chip_info structure to parameterize device-specific
properties such as ODR/bandwidth frequency tables, activity/inactivity
timer scale factors, and the maximum ODR value. This refactors the
driver to use chip_info lookups instead of hardcoded values, preparing
the driver to support multiple device variants.
The sampling_frequency and filter_low_pass_3db_frequency available
attributes are switched from custom sysfs callbacks to read_avail()
based handling via info_mask_shared_by_type_available. This enforces
consistent formatting through the IIO framework and makes the values
accessible to in-kernel consumers.
The SPI/I2C probe functions are updated to pass a chip_info pointer
instead of a device name string.
No functional change intended.
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
