summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorSanjay Chitroda <sanjayembeddedse@gmail.com>2026-03-15 17:46:25 +0530
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-03-21 20:09:55 +0000
commit1ac30f58f0336287203109872f71a81d4bb271db (patch)
tree75f1c0fc899e2963a1a5415ddeef2a3a4373a54a /include/linux/platform_data
parent733bcf18eab0cbcea7b1a85c967dc100945fffc3 (diff)
iio: st_sensors: drop temporary kmalloc buffer and reuse buffer_data
Replace the per-call kmalloc() scratch buffer with the existing buffer_data[] field present in struct st_sensor_data. The existing buffer is DMA-aligned and sufficiently sized for all channel widths, so using it avoids unnecessary dynamic memory allocation on each read. This simplifies the code, removes redundant allocation and cleanup. No functional change intended. Signed-off-by: Sanjay Chitroda <sanjayembeddedse@gmail.com> Reviewed-by: David Lechner <dlechner@baylibre.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions