aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorHsin-Hsiung Wang <[email protected]>2020-12-09 18:33:43 -0800
committerGreg Kroah-Hartman <[email protected]>2020-12-10 10:45:36 +0100
commitd40c2d4ed62df64ce603c208bceff25245380157 (patch)
tree4950dd8a825772c2846014c620b30a7768dc55bf /include/linux
parent0be0a733c9cd396c3900ac10873419d8b21bfd39 (diff)
spmi: Add driver shutdown support
Add new shutdown() method. Use it in the standard driver model style. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hsin-Hsiung Wang <[email protected]> Signed-off-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/spmi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/spmi.h b/include/linux/spmi.h
index 394a3f68bad5..729bcbf9f5ad 100644
--- a/include/linux/spmi.h
+++ b/include/linux/spmi.h
@@ -138,6 +138,7 @@ struct spmi_driver {
struct device_driver driver;
int (*probe)(struct spmi_device *sdev);
void (*remove)(struct spmi_device *sdev);
+ void (*shutdown)(struct spmi_device *sdev);
};
static inline struct spmi_driver *to_spmi_driver(struct device_driver *d)