Lines Matching refs:sdev
51 static inline void *spmi_device_get_drvdata(const struct spmi_device *sdev) in spmi_device_get_drvdata() argument
53 return dev_get_drvdata(&sdev->dev); in spmi_device_get_drvdata()
56 static inline void spmi_device_set_drvdata(struct spmi_device *sdev, void *data) in spmi_device_set_drvdata() argument
58 dev_set_drvdata(&sdev->dev, data); in spmi_device_set_drvdata()
63 static inline void spmi_device_put(struct spmi_device *sdev) in spmi_device_put() argument
65 if (sdev) in spmi_device_put()
66 put_device(&sdev->dev); in spmi_device_put()
69 int spmi_device_add(struct spmi_device *sdev);
71 void spmi_device_remove(struct spmi_device *sdev);
141 int (*probe)(struct spmi_device *sdev);
142 void (*remove)(struct spmi_device *sdev);
143 void (*shutdown)(struct spmi_device *sdev);
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);