Lines Matching refs:spmi_controller
41 struct spmi_controller *ctrl;
60 struct spmi_device *spmi_device_alloc(struct spmi_controller *ctrl);
80 struct spmi_controller { struct
83 int (*cmd)(struct spmi_controller *ctrl, u8 opcode, u8 sid); argument
84 int (*read_cmd)(struct spmi_controller *ctrl, u8 opcode, argument
86 int (*write_cmd)(struct spmi_controller *ctrl, u8 opcode, argument
90 static inline struct spmi_controller *to_spmi_controller(struct device *d) in to_spmi_controller()
92 return container_of(d, struct spmi_controller, dev); in to_spmi_controller()
96 void *spmi_controller_get_drvdata(const struct spmi_controller *ctrl) in spmi_controller_get_drvdata()
101 static inline void spmi_controller_set_drvdata(struct spmi_controller *ctrl, in spmi_controller_set_drvdata()
107 struct spmi_controller *spmi_controller_alloc(struct device *parent,
114 static inline void spmi_controller_put(struct spmi_controller *ctrl) in spmi_controller_put()
120 int spmi_controller_add(struct spmi_controller *ctrl);
121 void spmi_controller_remove(struct spmi_controller *ctrl);
123 struct spmi_controller *devm_spmi_controller_alloc(struct device *parent, size_t size);
124 int devm_spmi_controller_add(struct device *parent, struct spmi_controller *ctrl);