Re: [PATCH] Create PNP device attributes via dev_attrs field of structdevice

From: Drew Moseley
Date: Wed Sep 24 2008 - 13:22:29 EST


Kay Sievers wrote:
>
> Any reason not to assign it statically to pnp_bus_type at in
> drivers/pnp/driver.c?
>
> Thanks,
> Kay

Not really but since everything in the dev_attrs array is statically
defined in interface.c it was simpler to implement it this way. To
assign it in driver.c, the array can be made non-static and an extern
added in driver.c, or the array definition can be moved to driver.c and
all the set and show functions be made non-static. Is there a preference?

Thanks,
Drew
--
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/