Files
linux/drivers/iio/temperature
Cosmin Tanislav 4132f19173 iio: temperature: ltc2983: allocate iio channels once
Currently, every time the device wakes up from sleep, the
iio_chan array is reallocated, leaking the previous one
until the device is removed (basically never).

Move the allocation to the probe function to avoid this.

Signed-off-by: Cosmin Tanislav <[email protected]>
Fixes: f110f3188e ("iio: temperature: Add support for LTC2983")
Cc: <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
2022-10-17 08:51:26 +01:00
..