lkml.org 
[lkml]   [2008]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Create PNP device attributes via dev_attrs field of struct device
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


\
 
 \ /
  Last update: 2008-09-24 19:25    [W:0.052 / U:23.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site