search for: has_param_fil

Displaying 3 results from an estimated 3 matches for "has_param_fil".

Did you mean: has_param_file
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
...| S_IRUGO | S_IWUSR}, + .show = param_read_file, + .store = param_write_file +}; + static int has_power_file(struct pci_slot *pci_slot) { struct hotplug_slot *slot = pci_slot->hotplug; @@ -419,6 +455,17 @@ static int has_test_file(struct pci_slot *pci_slot) return -ENOENT; } +static int has_param_file(struct pci_slot *pci_slot) +{ + struct hotplug_slot *slot = pci_slot->hotplug; + if ((!slot) || (!slot->ops)) + return -ENODEV; + if ((slot->ops->set_param) || + (slot->ops->get_param)) + return 0; + return -ENOENT; +} + static int fs_add_slot(struct pci_slot *slot) { i...
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
...| S_IRUGO | S_IWUSR}, + .show = param_read_file, + .store = param_write_file +}; + static int has_power_file(struct pci_slot *pci_slot) { struct hotplug_slot *slot = pci_slot->hotplug; @@ -419,6 +455,17 @@ static int has_test_file(struct pci_slot *pci_slot) return -ENOENT; } +static int has_param_file(struct pci_slot *pci_slot) +{ + struct hotplug_slot *slot = pci_slot->hotplug; + if ((!slot) || (!slot->ops)) + return -ENODEV; + if ((slot->ops->set_param) || + (slot->ops->get_param)) + return 0; + return -ENOENT; +} + static int fs_add_slot(struct pci_slot *slot) { i...
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
...| S_IRUGO | S_IWUSR}, + .show = param_read_file, + .store = param_write_file +}; + static int has_power_file(struct pci_slot *pci_slot) { struct hotplug_slot *slot = pci_slot->hotplug; @@ -419,6 +455,17 @@ static int has_test_file(struct pci_slot *pci_slot) return -ENOENT; } +static int has_param_file(struct pci_slot *pci_slot) +{ + struct hotplug_slot *slot = pci_slot->hotplug; + if ((!slot) || (!slot->ops)) + return -ENODEV; + if ((slot->ops->set_param) || + (slot->ops->get_param)) + return 0; + return -ENOENT; +} + static int fs_add_slot(struct pci_slot *slot) { i...