Thread (8 messages) 8 messages, 6 authors, 2011-08-30

How to handle named resources with DT?

From: arnd@arndb.de (Arnd Bergmann)
Date: 2011-08-26 15:35:55
Also in: linux-devicetree, linux-omap

Possibly related (same subject, not in this thread)

On Friday 26 August 2011, David Gibson wrote:
If you open code it this way then yes, it's silly.  But what about
something like this:

static struct of_device_id foodevice_of_match[] __devinitdata = {
        { .compatible = "foocorp,foodevice1234",
          .resource_names = {"base_regs", "extra_regs", }, },
        { .compatible = "foocorp,foodevice1239",
          .resource_names = {"base_regs", "extra_regs", "more_regs", }, }, 
        { },
};
Hmm, I hadn't thought of that. This looks quite nice indeed. No objections
to this from my side.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help