While going through PCIe driver, I see this type of struct array initialization
static struct pci_device_id DWC_ETH_QOS_id[] = {
{ PCI_DEVICE(VENDOR_ID, DEVICE_ID), },
{ },
}
I found similar code in device tree of_device_id initializer as well:
static const struct of_device_id rh850_match_table[] = {
{ .compatible = "renesas,rh850" },
{ }
};
Why is there an empty {} at the end?
Thanks for the help!