Re: [PATCH] usb: musb: ux500: optimize DMA callback routine

From: Felipe Balbi
Date: Mon Aug 08 2011 - 06:01:17 EST


Hi,

On Mon, Aug 08, 2011 at 10:32:38AM +0200, Per Forlin wrote:

[snip]

> -/* Work function invoked from DMA callback to handle rx transfers. */
> -static void ux500_rx_work(struct work_struct *data)
> +void ux500_dma_callback(void *private_data)
> {
> - struct ux500_dma_channel *ux500_channel = container_of(data,
> - struct ux500_dma_channel, channel_work);
> + struct dma_channel *channel = (struct dma_channel *)private_data;

you don't need to explicitly cast a void pointer, please remove that.

--
balbi

Attachment: signature.asc
Description: Digital signature