Re: [PATCH] drivers/acpi/processor_thermal.c

From: Thomas Renninger
Date: Thu Feb 11 2010 - 06:05:00 EST


On Thursday 11 February 2010 11:52:20 Julia Lawall wrote:
> On Thu, 11 Feb 2010, Thomas Renninger wrote:
>
> > Eh,
> >
> > what is this for?:
> > static inline void *acpi_driver_data(struct acpi_device *d)
> > {
> > return d->driver_data;
> > }
...
>
> A potential patch that gets rid of the uses is below. I don't have time
> to look at this in more detail at the moment, but perhaps someone else
> would like to do so. The semantic patch (http://coccinelle.lip6.fr)
> involved is:
>
> @@
> struct acpi_device *d;
> @@
>
> - acpi_driver_data(d)
> + d->driver_data
Len, do you mind adding this to your test branch, please.
I can grep over it afterwards (somewhen...) and void out
acpi_driver_data(..)
declaration in acpi_bus.h.

I expect also Darren has to rebase his fixes on top of this
one then.

Thanks,

Thomas
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/