Re: [PATCH] thermal/drivers/generic-iio-adc: Switch tz request to devm version

2017-09-08 Thread Daniel Lezcano
On 08/09/2017 04:56, Eduardo Valentin wrote: > Hey Daniel, Hi Valentin, >> static int gadc_thermal_remove(struct platform_device *pdev) > > Any particular reason why this patch does not include a removal of > gadc_thermal_remove()? Ah, yes. Missed it. Thanks. -- Daniel --

Re: [PATCH] thermal/drivers/generic-iio-adc: Switch tz request to devm version

2017-09-07 Thread Eduardo Valentin
Hey Daniel, On Thu, Sep 07, 2017 at 08:17:10PM +0200, Daniel Lezcano wrote: > Everything mentionned here: > https://lkml.org/lkml/2016/4/20/850 > > This driver was added before the devm_iio_channel_get() function version was > merged. The sensor should be released before the iio channel, thus we

[PATCH] thermal/drivers/generic-iio-adc: Switch tz request to devm version

2017-09-07 Thread Daniel Lezcano
Everything mentionned here: https://lkml.org/lkml/2016/4/20/850 This driver was added before the devm_iio_channel_get() function version was merged. The sensor should be released before the iio channel, thus we had to use the non-devm version of thermal_zone_of_sensor_register(). Now the devm_ii