]> git.baikalelectronics.ru Git - kernel.git/commit
iio: gyro: adis16136: initialize adis_data statically
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Mon, 10 Feb 2020 13:26:00 +0000 (15:26 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Mar 2020 17:28:29 +0000 (17:28 +0000)
commitc13c9f294007732e2f495b2a98f2e406ba206c4d
treef9b66434c812230a675e40de9c2b59062f9a0250
parent0782db09640b503d9dd94ab6b88237f959838407
iio: gyro: adis16136: initialize adis_data statically

This change overrides commit 6c2cdb10f72a1 ("iio: adis: Introduce timeouts
structure"). It removes the memory allocation and moves the 'adis_data'
information to be static on the chip_info struct.

This also adds a timeout structure to ADIS16334, since it was initially
omitted. This was omitted (by accident) when the change was done.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/adis16136.c