]> git.baikalelectronics.ru Git - kernel.git/commit
iio: imu: adis16400: initialize adis_data statically
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Mon, 10 Feb 2020 13:25:59 +0000 (15:25 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Mar 2020 17:28:29 +0000 (17:28 +0000)
commit1781f63026a1f94d2d5c023b1578597a1086c3eb
tree47e05d645ea586c6b912135388cea3130a6727f4
parent8b75cb0c87636d6aa84f2d06034d7f83f2eabc72
iio: imu: adis16400: initialize adis_data statically

This change overrides commit 72ef14a3d05f5 ("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/imu/adis16400.c