Re: [PATCH] staging:iio:ad7280a: Use managed interfaces

2014-07-19 Thread Julia Lawall
On Sat, 19 Jul 2014, Jonathan Cameron wrote: > On 19/07/14 21:46, Julia Lawall wrote: > > > > > > On Sat, 19 Jul 2014, Jonathan Cameron wrote: > > > > > On 19/07/14 11:33, Himangi Saraogi wrote: > > > > This patch moves data allocated using unmanaged interfaces to managed > > > > interfaces l

Re: [PATCH] staging:iio:ad7280a: Use managed interfaces

2014-07-19 Thread Jonathan Cameron
On 19/07/14 21:46, Julia Lawall wrote: On Sat, 19 Jul 2014, Jonathan Cameron wrote: On 19/07/14 11:33, Himangi Saraogi wrote: This patch moves data allocated using unmanaged interfaces to managed interfaces like devm_kzalloc, devm_iio_device_register, devm_kasprintf, devm_request_threaded_ir

Re: [PATCH] staging:iio:ad7280a: Use managed interfaces

2014-07-19 Thread Julia Lawall
On Sat, 19 Jul 2014, Jonathan Cameron wrote: > On 19/07/14 11:33, Himangi Saraogi wrote: > > This patch moves data allocated using unmanaged interfaces to managed > > interfaces like devm_kzalloc, devm_iio_device_register, devm_kasprintf, > > devm_request_threaded_irq and does away with the call

Re: [PATCH] staging:iio:ad7280a: Use managed interfaces

2014-07-19 Thread Jonathan Cameron
On 19/07/14 11:33, Himangi Saraogi wrote: This patch moves data allocated using unmanaged interfaces to managed interfaces like devm_kzalloc, devm_iio_device_register, devm_kasprintf, devm_request_threaded_irq and does away with the calls to free the allocated memory in the probe and remove funct

[PATCH] staging:iio:ad7280a: Use managed interfaces

2014-07-19 Thread Himangi Saraogi
This patch moves data allocated using unmanaged interfaces to managed interfaces like devm_kzalloc, devm_iio_device_register, devm_kasprintf, devm_request_threaded_irq and does away with the calls to free the allocated memory in the probe and remove functions. Some labels in the probe function are