diff options
author | Todd Poynor <toddpoynor@google.com> | 2018-08-05 23:07:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-08-08 12:20:07 +0300 |
commit | 39091410d0d8eeb07f3b08ff4e44400ccd434762 (patch) | |
tree | 2bef762d2cf43e00a7a1d12d863559d7385c5955 /drivers/staging/gasket/gasket_core.h | |
parent | 2f649036fa66b1494da6ecf8bd4d53167e10e36f (diff) | |
download | linux-39091410d0d8eeb07f3b08ff4e44400ccd434762.tar.xz |
staging: gasket: core: let device driver enable/disable gasket device
Move gasket device enable/disable functions from internal calls to
external calls from the gasket device drivers. The device driver will
call these functions at appropriate times in its processing, placing
the device driver in control of this sequence and reducing the need for
callbacks from framework back to the device drivers during the
enable/disable sequences.
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gasket/gasket_core.h')
-rw-r--r-- | drivers/staging/gasket/gasket_core.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/gasket/gasket_core.h b/drivers/staging/gasket/gasket_core.h index 5d40bc7f52e9..9c143ebeba45 100644 --- a/drivers/staging/gasket/gasket_core.h +++ b/drivers/staging/gasket/gasket_core.h @@ -590,6 +590,12 @@ int gasket_pci_add_device(struct pci_dev *pci_dev, /* Remove a PCI gasket device. */ void gasket_pci_remove_device(struct pci_dev *pci_dev); +/* Enable a Gasket device. */ +int gasket_enable_device(struct gasket_dev *gasket_dev); + +/* Disable a Gasket device. */ +void gasket_disable_device(struct gasket_dev *gasket_dev); + /* * Reset the Gasket device. * @gasket_dev: Gasket device struct. |