Re: How to handle named resources with DT?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux