]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: chemical: bme680: Allocate IIO device before chip initialization
authorVasileios Amoiridis <vassilisamir@gmail.com>
Sun, 9 Jun 2024 23:38:19 +0000 (01:38 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:34 +0000 (10:13 +0100)
commit43eca242b3c19c0323dbf58871d0e4c0ffbaa117
treedc71e37104d85f08cf0c357b47756737a0f61c46
parenta4f765e72e6723718cb8df1da77fe18a5488b552
iio: chemical: bme680: Allocate IIO device before chip initialization

Move the IIO device allocation before the actual initialization of the
chip to be more consistent with most IIO drivers and also to have the
ability to use any driver specific data for the chip initialization.

While at it, fix also a misaligned line.

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