staticintvp_reg_get_voltage(struct regulator_dev *rdev){structmsm_vp*vp=rdev_get_drvdata(rdev);returnMV_TO_UV(vp->current_voltage); } 开发者ID:1n,项目名称:xperia-m-source,代码行数:6,代码来源:msm_vp.c 示例8: qpnp_regulator_common_enable_time ▲点赞 1▼ staticintqpnp_regulator_comm...
staticintlpc18xx_pmx_get_func_groups(struct pinctrl_dev *pctldev,unsignedfunction,constchar*const**groups,unsigned*constnum_groups){structlpc18xx_scu_data*scu=pinctrl_dev_get_drvdata(pctldev);*groups = scu->func[function].groups; *num_groups = scu->func[function].ngroups;return0; } 开发...
Linux内核可以通过通知链机制来获取由其它模块或子系统产生的它感兴趣的某些事件。...notifier_block结构体在include/linux/notifier.h中定义: struct notifier_block { notifier_fn_t notifier_call...struct msg21xx_ts_data *data = dev_get_drvdata(dev); int err; if (data->suspended) { dev_info...
Linux内核可以通过通知链机制来获取由其它模块或子系统产生的它感兴趣的某些事件。...notifier_block结构体在include/linux/notifier.h中定义: struct notifier_block { notifier_fn_t notifier_call...struct msg21xx_ts_data *data = dev_get_drvdata(dev); int err; if (data->suspended) { dev_info...