Lines Matching refs:spmi_device
39 struct spmi_device { struct
45 static inline struct spmi_device *to_spmi_device(struct device *d) in to_spmi_device() argument
47 return container_of(d, struct spmi_device, dev); in to_spmi_device()
50 static inline void *spmi_device_get_drvdata(const struct spmi_device *sdev) in spmi_device_get_drvdata()
55 static inline void spmi_device_set_drvdata(struct spmi_device *sdev, void *data) in spmi_device_set_drvdata()
60 struct spmi_device *spmi_device_alloc(struct spmi_controller *ctrl);
62 static inline void spmi_device_put(struct spmi_device *sdev) in spmi_device_put()
68 int spmi_device_add(struct spmi_device *sdev);
70 void spmi_device_remove(struct spmi_device *sdev);
139 int (*probe)(struct spmi_device *sdev);
140 void (*remove)(struct spmi_device *sdev);
141 void (*shutdown)(struct spmi_device *sdev);
169 struct spmi_device *spmi_device_from_of(struct device_node *np);
170 int spmi_register_read(struct spmi_device *sdev, u8 addr, u8 *buf);
171 int spmi_ext_register_read(struct spmi_device *sdev, u8 addr, u8 *buf,
173 int spmi_ext_register_readl(struct spmi_device *sdev, u16 addr, u8 *buf,
175 int spmi_register_write(struct spmi_device *sdev, u8 addr, u8 data);
176 int spmi_register_zero_write(struct spmi_device *sdev, u8 data);
177 int spmi_ext_register_write(struct spmi_device *sdev, u8 addr,
179 int spmi_ext_register_writel(struct spmi_device *sdev, u16 addr,
181 int spmi_command_reset(struct spmi_device *sdev);
182 int spmi_command_sleep(struct spmi_device *sdev);
183 int spmi_command_wakeup(struct spmi_device *sdev);
184 int spmi_command_shutdown(struct spmi_device *sdev);