aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexandru Ardelean <[email protected]>2021-07-05 10:14:55 +0300
committerJonathan Cameron <[email protected]>2021-07-17 18:44:18 +0100
commit2427a7e95ca9c72807f5cf57afee093eeccb79d3 (patch)
tree919572a36b1f9ccad9f6c017be41fbb111d38c9f /include
parent7786da3b5ae167c17f35e22ba35e06006338c2f6 (diff)
iio: light: adjd_s311: move buffer on adjd_s311_data object
This change moves the entire buffer on the private adjd_s311_data type. Since the device has 4 channels, it's not a big waste to just allocate the maximum possible buffer and use only what's needed. This is in contrast with free-ing and re-allocating the buffer on the update_scan_mode hook. Since the driver pushes buffer data with iio_push_to_buffers_with_timestamp(), the buffer must also include a 64-bit buffer for the timestamp, for each sample-set. With this change, the adjd_s311_update_scan_mode() is no longer needed. Signed-off-by: Alexandru Ardelean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions