MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_pin_ctrl_confs_apply

Function rt_pin_ctrl_confs_apply

components/drivers/pinctrl/pinctrl.c:183–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183rt_err_t rt_pin_ctrl_confs_apply(struct rt_device *device, int index)
184{
185 rt_err_t err;
186
187 if (device && index >= 0)
188 {
189 err = -RT_ENOSYS;
190
191 #ifdef RT_USING_OFW
192 if (device->ofw_node)
193 {
194 err = ofw_pin_ctrl_confs_apply(device->ofw_node, index);
195 }
196 #endif /* RT_USING_OFW */
197 }
198 else
199 {
200 err = -RT_EINVAL;
201 }
202
203 return err;
204}
205
206rt_err_t rt_pin_ctrl_confs_apply_by_name(struct rt_device *device, const char *name)
207{

Callers 1

regulator_fixed_probeFunction · 0.85

Calls 1

ofw_pin_ctrl_confs_applyFunction · 0.85

Tested by

no test coverage detected