Redundant addr '&' operator on func ptr's in struct initiator
Bring code inline to be consistent with the rest of coreboot. See standard - c99std (n1256) 6.3.2.1p4 - to paraphrase, 'expressions that refer to functions get converted to pointers to those functions' Change-Id: I63a7bed5efade37dd7076dbfc9c85d420cf6c92b Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/7290 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
@@ -296,12 +296,12 @@ static struct device_operations cx700_lpc_ops = {
|
|||||||
.read_resources = cx700_read_resources,
|
.read_resources = cx700_read_resources,
|
||||||
.set_resources = cx700_set_resources,
|
.set_resources = cx700_set_resources,
|
||||||
.enable_resources = cx700_enable_resources,
|
.enable_resources = cx700_enable_resources,
|
||||||
.init = &cx700_lpc_init,
|
.init = cx700_lpc_init,
|
||||||
.scan_bus = scan_static_bus,
|
.scan_bus = scan_static_bus,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct pci_driver lpc_driver __pci_driver = {
|
static const struct pci_driver lpc_driver __pci_driver = {
|
||||||
.ops = &cx700_lpc_ops,
|
.ops = &cx700_lpc_ops,
|
||||||
.vendor = PCI_VENDOR_ID_VIA,
|
.vendor = PCI_VENDOR_ID_VIA,
|
||||||
.device = 0x8324,
|
.device = 0x8324,
|
||||||
};
|
};
|
||||||
|
@@ -433,12 +433,12 @@ static void systemagent_enable(device_t dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct device_operations systemagent_ops = {
|
static struct device_operations systemagent_ops = {
|
||||||
.read_resources = &systemagent_read_resources,
|
.read_resources = systemagent_read_resources,
|
||||||
.set_resources = &pci_dev_set_resources,
|
.set_resources = pci_dev_set_resources,
|
||||||
.enable_resources = &pci_dev_enable_resources,
|
.enable_resources = pci_dev_enable_resources,
|
||||||
.init = &systemagent_init,
|
.init = systemagent_init,
|
||||||
.enable = &systemagent_enable,
|
.enable = systemagent_enable,
|
||||||
.ops_pci = &broadwell_pci_ops,
|
.ops_pci = broadwell_pci_ops,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const unsigned short systemagent_ids[] = {
|
static const unsigned short systemagent_ids[] = {
|
||||||
|
Reference in New Issue
Block a user