]> www.infradead.org Git - users/willy/linux.git/commit
iio: chemical: bme680: Add read buffers in read/write buffer union
authorVasileios Amoiridis <vassilisamir@gmail.com>
Sun, 9 Jun 2024 23:38:20 +0000 (01:38 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:34 +0000 (10:13 +0100)
commitf2f2e7b1a4522d9dc0883e1baf0dea61544cc12b
tree7805ea7be3dfb75ee6e45e3a3bb8878d31c51b7e
parent43eca242b3c19c0323dbf58871d0e4c0ffbaa117
iio: chemical: bme680: Add read buffers in read/write buffer union

Move the buffers that are used in order to read data from the device in
the union which handles all the device read/write buffers. Also create
defines for the number of bytes that are being read from the device and
don't use magic numbers.

Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://patch.msgid.link/20240609233826.330516-10-vassilisamir@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/bme680.h
drivers/iio/chemical/bme680_core.c