当前位置: 首页>>代码示例>>C++>>正文


C++ pinctrl_dev_get_drvdata函数代码示例

本文整理汇总了C++中pinctrl_dev_get_drvdata函数的典型用法代码示例。如果您正苦于以下问题:C++ pinctrl_dev_get_drvdata函数的具体用法?C++ pinctrl_dev_get_drvdata怎么用?C++ pinctrl_dev_get_drvdata使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了pinctrl_dev_get_drvdata函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: axp_pmx_get_function_groups

static int axp_pmx_get_function_groups(struct pinctrl_dev *pctldev,
		                       unsigned function,
		                       const char * const **groups,
		                       unsigned * const num_groups)
{
	struct axp_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev);
	
	*groups     = pctl->functions[function].groups;
	*num_groups = pctl->functions[function].ngroups;
	
	return 0;
}
开发者ID:condret,项目名称:OrangePI-Kernel,代码行数:12,代码来源:pinctrl-axp.c

示例2: axp_pinctrl_get_group_pins

static int axp_pinctrl_get_group_pins(struct pinctrl_dev *pctldev,
                                      unsigned selector,
                                      const unsigned **pins,
                                      unsigned *num_pins)
{
	struct axp_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev);

	*pins = (unsigned *)&pctl->groups[selector].pin;
	*num_pins = 1;

	return 0;
}
开发者ID:condret,项目名称:OrangePI-Kernel,代码行数:12,代码来源:pinctrl-axp.c

示例3: oxnas_pinmux_get_function_groups

static int oxnas_pinmux_get_function_groups(struct pinctrl_dev *pctldev,
					    unsigned int func,
					    const char * const **groups,
					    unsigned int * const num_groups)
{
	struct oxnas_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev);

	*groups = pctl->functions[func].groups;
	*num_groups = pctl->functions[func].ngroups;

	return 0;
}
开发者ID:AK101111,项目名称:linux,代码行数:12,代码来源:pinctrl-oxnas.c

示例4: cygnus_get_function_groups

static int cygnus_get_function_groups(struct pinctrl_dev *pctrl_dev,
				      unsigned selector,
				      const char * const **groups,
				      unsigned * const num_groups)
{
	struct cygnus_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev);

	*groups = pinctrl->functions[selector].groups;
	*num_groups = pinctrl->functions[selector].num_groups;

	return 0;
}
开发者ID:513855417,项目名称:linux,代码行数:12,代码来源:pinctrl-cygnus-mux.c

示例5: ns_pinctrl_get_group_pins

static int ns_pinctrl_get_group_pins(struct pinctrl_dev *pctrl_dev,
				     unsigned int selector,
				     const unsigned int **pins,
				     unsigned int *num_pins)
{
	struct ns_pinctrl *ns_pinctrl = pinctrl_dev_get_drvdata(pctrl_dev);

	*pins = ns_pinctrl->groups[selector].pins;
	*num_pins = ns_pinctrl->groups[selector].num_pins;

	return 0;
}
开发者ID:austriancoder,项目名称:linux,代码行数:12,代码来源:pinctrl-ns.c

示例6: lpc18xx_pmx_get_func_groups

static int lpc18xx_pmx_get_func_groups(struct pinctrl_dev *pctldev,
				       unsigned function,
				       const char *const **groups,
				       unsigned *const num_groups)
{
	struct lpc18xx_scu_data *scu = pinctrl_dev_get_drvdata(pctldev);

	*groups  = scu->func[function].groups;
	*num_groups = scu->func[function].ngroups;

	return 0;
}
开发者ID:Seagate,项目名称:SMR_FS-EXT4,代码行数:12,代码来源:pinctrl-lpc18xx.c

示例7: wmt_get_group_pins

static int wmt_get_group_pins(struct pinctrl_dev *pctldev,
			      unsigned selector,
			      const unsigned **pins,
			      unsigned *num_pins)
{
	struct wmt_pinctrl_data *data = pinctrl_dev_get_drvdata(pctldev);

	*pins = &data->pins[selector].number;
	*num_pins = 1;

	return 0;
}
开发者ID:19Dan01,项目名称:linux,代码行数:12,代码来源:pinctrl-wmt.c

示例8: oxnas_pinctrl_get_group_pins

static int oxnas_pinctrl_get_group_pins(struct pinctrl_dev *pctldev,
					unsigned int group,
					const unsigned int **pins,
					unsigned int *num_pins)
{
	struct oxnas_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev);

	*pins = &pctl->groups[group].pin;
	*num_pins = 1;

	return 0;
}
开发者ID:AK101111,项目名称:linux,代码行数:12,代码来源:pinctrl-oxnas.c

示例9: zynq_pctrl_get_group_pins

static int zynq_pctrl_get_group_pins(struct pinctrl_dev *pctldev,
				     unsigned selector,
				     const unsigned **pins,
				     unsigned *num_pins)
{
	struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev);

	*pins = pctrl->groups[selector].pins;
	*num_pins = pctrl->groups[selector].npins;

	return 0;
}
开发者ID:Seagate,项目名称:SMR_FS-EXT4,代码行数:12,代码来源:pinctrl-zynq.c

示例10: tegra_pinctrl_get_group_pins

static int tegra_pinctrl_get_group_pins(struct pinctrl_dev *pctldev,
					unsigned group,
					const unsigned **pins,
					unsigned *num_pins)
{
	struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev);

	*pins = pmx->soc->groups[group].pins;
	*num_pins = pmx->soc->groups[group].npins;

	return 0;
}
开发者ID:vikastaneja,项目名称:linux,代码行数:12,代码来源:pinctrl-tegra.c

示例11: imx_pmx_get_groups

static int imx_pmx_get_groups(struct pinctrl_dev *pctldev, unsigned selector,
			       const char * const **groups,
			       unsigned * const num_groups)
{
	struct imx_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev);
	const struct imx_pinctrl_soc_info *info = ipctl->info;

	*groups = info->functions[selector].groups;
	*num_groups = info->functions[selector].num_groups;

	return 0;
}
开发者ID:Cool-Joe,项目名称:imx23-audio,代码行数:12,代码来源:pinctrl-imx.c

示例12: mxs_pinctrl_get_func_groups

static int mxs_pinctrl_get_func_groups(struct pinctrl_dev *pctldev,
				       unsigned group,
				       const char * const **groups,
				       unsigned * const num_groups)
{
	struct mxs_pinctrl_data *d = pinctrl_dev_get_drvdata(pctldev);

	*groups = d->soc->functions[group].groups;
	*num_groups = d->soc->functions[group].ngroups;

	return 0;
}
开发者ID:020gzh,项目名称:linux,代码行数:12,代码来源:pinctrl-mxs.c

示例13: nmk_pmx_get_func_groups

static int nmk_pmx_get_func_groups(struct pinctrl_dev *pctldev,
				   unsigned function,
				   const char * const **groups,
				   unsigned * const num_groups)
{
	struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev);

	*groups = npct->soc->functions[function].groups;
	*num_groups = npct->soc->functions[function].ngroups;

	return 0;
}
开发者ID:AsherBond,项目名称:ceph-client,代码行数:12,代码来源:pinctrl-nomadik.c

示例14: pxa3xx_get_group_pins

static int pxa3xx_get_group_pins(struct pinctrl_dev *pctrldev,
				 unsigned selector,
				 const unsigned **pins,
				 unsigned *num_pins)
{
	struct pxa3xx_pinmux_info *info = pinctrl_dev_get_drvdata(pctrldev);
	if (selector >= info->num_grps)
		return -EINVAL;
	*pins = info->grps[selector].pins;
	*num_pins = info->grps[selector].npins;
	return 0;
}
开发者ID:404992361,项目名称:mi1_kernel,代码行数:12,代码来源:pinctrl-pxa3xx.c

示例15: wmt_pmx_gpio_set_direction

static int wmt_pmx_gpio_set_direction(struct pinctrl_dev *pctldev,
				      struct pinctrl_gpio_range *range,
				      unsigned offset,
				      bool input)
{
	struct wmt_pinctrl_data *data = pinctrl_dev_get_drvdata(pctldev);

	wmt_set_pinmux(data, (input ? WMT_FSEL_GPIO_IN : WMT_FSEL_GPIO_OUT),
		       offset);

	return 0;
}
开发者ID:19Dan01,项目名称:linux,代码行数:12,代码来源:pinctrl-wmt.c


注:本文中的pinctrl_dev_get_drvdata函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。