Re: [PATCH 07/10] platform/x86: toshiba_acpi: use device-managed functions for accelerometer

2021-03-29 Thread Jonathan Cameron
On Wed, 24 Mar 2021 14:55:45 +0200 Alexandru Ardelean wrote: > This change converts the IIO registration to use devm_iio_device_alloc() > and devm_iio_device_register(). > With this change we can remove the manual deregistrations an freeing of the > IIO data. > > This also makes the

[PATCH 07/10] platform/x86: toshiba_acpi: use device-managed functions for accelerometer

2021-03-24 Thread Alexandru Ardelean
This change converts the IIO registration to use devm_iio_device_alloc() and devm_iio_device_register(). With this change we can remove the manual deregistrations an freeing of the IIO data. This also makes the deregistration symmetrical with the registration. One side-effect (that is