[PATCH 2/6] staging: wilc1000: remove WILC_NEW and WILC_NEW_EX

2015-08-16 Thread Chaehyun Lim
This patch removes WILC_NEW and WILC_NEW_EX defines that are not used anywhere. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_memory.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_memory.h b/drivers/staging/wilc1000/wilc_memor

[PATCH 1/6] staging: wilc1000: use kmalloc instead of WILC_NEW

2015-08-16 Thread Chaehyun Lim
WILC_NEW is replaced by kmallo with GFP_ATOMIC. This kmalloc is inside a spin_lock_irqsave region. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_msgqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/stag

[PATCH 4/6] staging: wilc1000: remove unused codes of gps8ConfigPacket

2015-08-16 Thread Chaehyun Lim
This patch removes unused codes of gps8ConfigPacket declared by global variable. It is allocated and freed memory within CoreConfiguratorInit and CoreConfiguratorDeInit. There is no used anywhere except within two functions. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigura

[PATCH 5/6] staging: wilc1000: coreconfigurator.c: use kmalloc instead of WILC_MALLOC

2015-08-16 Thread Chaehyun Lim
The kmalloc is used to handle host interface message within kernel thread. The manipulation of host interface message is not called on IRQ context and I could not find any spinlock inside function. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 11 ++- 1 fi

[PATCH 3/6] staging: wilc1000: remove unnecessary void pointer cast

2015-08-16 Thread Chaehyun Lim
This patch removes unnecessary void pointer cast of WILC_MALLOC. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 12 ++-- drivers/staging/wilc1000/host_interface.c | 78 +++ drivers/staging/wilc1000/linux_wlan.c | 2 +-

[PATCH 6/6] staging: wilc1000: coreconfigurator.c: fix kmalloc error check

2015-08-16 Thread Chaehyun Lim
It is added and fixed error check when kmalloc is failed. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/co

Re: [PATCH v2 4/4] staging: comedi: usbduxsigma: use comedi_offset_munge()

2015-08-16 Thread Sudip Mukherjee
On Fri, Aug 14, 2015 at 11:34:07AM -0700, H Hartley Sweeten wrote: > Use the comedi_offset_munge() helper to convert the hardware two's > complement values to the offset binary format expected by comedi. > > Signed-off-by: H Hartley Sweeten > Cc: Ian Abbott > Cc: Greg Kroah-Hartman > --- > dri