]> www.infradead.org Git - users/jedix/linux-maple.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)
commite914cfdf12ab1a3f7339c95a65c8b5743c951fa6
treef9b66434c812230a675e40de9c2b59062f9a0250
parent99460853a894ca4fd4d2573ab49ce1f57b7817e1
iio: gyro: adis16136: initialize adis_data statically

This change overrides commit 380b107bbf944 ("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