aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/spmi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/spmi.h')
-rw-r--r--include/linux/spmi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/spmi.h b/include/linux/spmi.h
index 394a3f68bad5..eac1956a8727 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)
@@ -163,6 +164,9 @@ static inline void spmi_driver_unregister(struct spmi_driver *sdrv)
module_driver(__spmi_driver, spmi_driver_register, \
spmi_driver_unregister)
+struct device_node;
+
+struct spmi_device *spmi_device_from_of(struct device_node *np);
int spmi_register_read(struct spmi_device *sdev, u8 addr, u8 *buf);
int spmi_ext_register_read(struct spmi_device *sdev, u8 addr, u8 *buf,
size_t len);