I think Mike has a patch queued up that takes advantage of the class
code, which might address all of these issues. Mike?
> > This also forces you to do a lot of string compares within the bus show
> > function (as your example did) which is almost as unwieldy as just
> > having individual show functions, right? :)
>
> Nothing prevents users from doing it the callback way. However,
> callbacks aren't a scaleable interface for properties that have to be
> shared and overridden.
I don't understand the "shared and overridden" aspect. Do you mean a
default attribute for all types of SCSI devices, with the ability for an
individual device to override the attribute with it's own values if it
wants to? That still seems doable within the driver model today,
without having to rely on bus specific functions.
Hm, this is _really_ calling for what Pat calls "attributes". Take a
look at the ones in the class model, and let me know if those would work
for you for devices. If so, I'll be glad to add them, which should help
you out here.
Hope this helps,
greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/