[PATCH] staging: iio: ad9832: Use devm_iio_device_register

2014-08-03 Thread Himangi Saraogi
This patch introduces the use of devm_iio_device_register and does away with the unregister in the remove function. Signed-off-by: Himangi Saraogi himangi...@gmail.com Acked-by: Julia Lawall julia.law...@lip6.fr --- drivers/staging/iio/frequency/ad9832.c | 3 +-- 1 file changed, 1 insertion

[PATCH] staging:iio:ad9852: Use devm_iio_device_register

2014-08-03 Thread Himangi Saraogi
This patch introduces the use of devm_iio_device_register and does away with the unregister in the remove function. Signed-off-by: Himangi Saraogi himangi...@gmail.com Acked-by: Julia Lawall julia.law...@lip6.fr --- drivers/staging/iio/frequency/ad9852.c | 10 +- 1 file changed, 1

[PATCH] staging: iio: ad9951: Use devm_iio_device_register

2014-08-03 Thread Himangi Saraogi
This patch introduces the use of devm_iio_device_register and does away with the unregister in the remove function. The remove function is no longer required and is completely removed. Signed-off-by: Himangi Saraogi himangi...@gmail.com Acked-by: Julia Lawall julia.law...@lip6.fr --- drivers

[PATCH] staging: gdm724x: Use NLMSG_HDRLEN

2014-07-22 Thread Himangi Saraogi
Replace use of NLMSG_SPACE(0) with NLMSG_HDRLEN as they are equivalent and NLMSG_SPACE seems to be deprecated. Signed-off-by: Himangi Saraogi himangi...@gmail.com --- To send to: Greg Kroah-Hartman gre...@linuxfoundation.org,de...@driverdev.osuosl.org,linux-ker...@vger.kernel.org drivers

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

2014-07-19 Thread Himangi Saraogi
are also removed. Signed-off-by: Himangi Saraogi himangi...@gmail.com --- I am not very sure if devmifying request_irq is a good idea as it leads to the freeing of the interrupt after the ad7280_write. drivers/staging/iio/adc/ad7280a.c | 57 ++- 1 file changed, 20

[PATCH] staging: iio: adis16203: Use devm_iio_device_register

2014-07-17 Thread Himangi Saraogi
This patch introduces the use of iio_device_register and does away with the call to the corressponding unregister function in the probe and remove functions of the driver respectively. Signed-off-by: Himangi Saraogi himangi...@gmail.com Acked-by: Julia Lawall julia.law...@lip6.fr --- drivers

[PATCH] staging: goldfish: Introduce the use of managed interfaces

2014-07-04 Thread Himangi Saraogi
-by: Himangi Saraogi himangi...@gmail.com Acked-by: Julia Lawall julia.law...@lip6.fr --- drivers/staging/goldfish/goldfish_audio.c | 53 --- 1 file changed, 13 insertions(+), 40 deletions(-) diff --git a/drivers/staging/goldfish/goldfish_audio.c b/drivers/staging/goldfish

[PATCH] staging: lirc: Introduce the use of managed interfaces

2014-07-03 Thread Himangi Saraogi
This patch introduces the use of managed interfaces like devm_request_mem_region and devm_request_irq and does away with the calls to free the allocated memory in the probe and remove functions. The remove function is no longer required and is removed completely. Signed-off-by: Himangi Saraogi

[PATCH] iio:trigger: Introduce the use of devm_kzalloc

2014-07-01 Thread Himangi Saraogi
This patch introduces the use of the managed version of kzalloc and removes the kfrees in the probe and remove functions. Also, the labels are renamed to order them. Signed-off-by: Himangi Saraogi himangi...@gmail.com Acked-by: Julia Lawall julia.law...@lip6.fr --- drivers/staging/iio/trigger

[PATCH] staging: iio: Introduce the use of devm_ioremap_resource

2014-07-01 Thread Himangi Saraogi
is also eliminated. Also, a bug is fixed as the goto in the error handling of request_mem_region should not have called release_mem_region which releases a resource that has not been allocated. Signed-off-by: Himangi Saraogi himangi...@gmail.com Acked-by: Julia Lawall julia.law...@lip6.fr --- drivers

[PATCH v2] iio:trigger: Introduce the use of devm_kzalloc

2014-07-01 Thread Himangi Saraogi
This patch introduces the use of the managed version of kzalloc and removes the kfrees in the probe and remove functions. More return paths are added and the labels are renamed to order them. Signed-off-by: Himangi Saraogi himangi...@gmail.com --- v2: add more return paths Not compile tested

[PATCH] Staging: rtl8192e: adjust error handling

2014-06-21 Thread Himangi Saraogi
( if (...) { ... when != free_netdev(E); return dev; } | * if (...) { ... when != free_netdev(E); return ...; } | register_netdev(E) ) // /smpl Signed-off-by: Himangi Saraogi himangi...@gmail.com Acked-by: Julia Lawall julia.law...@lip6.fr --- drivers/staging/rtl8192e/rtllib_module.c | 5