lkml.org 
[lkml]   [2011]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] usb: musb: ux500: optimize DMA callback routine
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
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2011-08-08 12:03    [W:0.030 / U:1.904 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site