]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: pressure: mprls0025pa: introduce tx buffer
authorPetre Rodan <petre.rodan@subdimension.ro>
Wed, 14 Jan 2026 16:55:38 +0000 (18:55 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 16 Jan 2026 17:40:40 +0000 (17:40 +0000)
commitcf322f806d83b3e221b2b72550c4132b87fa15d9
tree312dce884851ddd883625453ec51c2bcb10f502d
parent7071f9f06210c6c828a5db205fa18dfd187ba529
iio: pressure: mprls0025pa: introduce tx buffer

Use a tx_buf that is part of the priv struct for transferring data to
the sensor instead of relying on a devm_kzalloc()-ed array.
Remove the .init operation in the process.

Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/mprls0025pa.c
drivers/iio/pressure/mprls0025pa.h
drivers/iio/pressure/mprls0025pa_i2c.c
drivers/iio/pressure/mprls0025pa_spi.c