On Tue, 20 Feb 2007 [EMAIL PROTECTED] wrote:

...
> This patch turns off periodic list processing in the EHCI controller for
> the duration of processor frequency changes.
> 
> Signed-off-by: Stuart Hayes <[EMAIL PROTECTED]>

> +#define __type_entry(ptr,type,member) ((type *)((char 
> *)(ptr)-offsetof(type,member)))
> +
> +static int ehci_cpufreq_notifier(struct notifier_block *nb, unsigned long 
> val,
> +                              void *data)
> +{
> +     struct ehci_hcd *ehci = __type_entry(nb, struct ehci_hcd, 
> +                                          cpufreq_transition);

There already is a standard container_of() macro to do this.

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to