*参照元 [#u8e840ff] #backlinks *説明 [#u9bd1654] -パス: [[linux-4.4.1/]] -パス: [[linux-4.4.1/drivers/pinctrl/core.c]] -FIXME: これは何? --説明 **引数 [#j546a664] -struct device_node *np -- --[[linux-4.4.1/device_node]] **返り値 [#y13bd66d] -struct pinctrl_dev * -- --[[linux-4.4.1/pinctrl_dev]] **参考 [#rfc917fd] *実装 [#wc5bd157] struct pinctrl_dev *get_pinctrl_dev_from_of_node(struct device_node *np) { struct pinctrl_dev *pctldev; - --[[linux-4.4.1/pinctrl_dev]] mutex_lock(&pinctrldev_list_mutex); - --[[linux-4.4.1/mutex_lock()]] --[[linux-4.4.1/pinctrldev_list_mutex(global)]] list_for_each_entry(pctldev, &pinctrldev_list, node) if (pctldev->dev->of_node == np) { mutex_unlock(&pinctrldev_list_mutex); return pctldev; } - --[[linux-4.4.1/list_for_each_entry()]] --[[linux-4.4.1/pinctrldev_list(global)]] --[[linux-4.4.1/mutex_unlock()]] mutex_unlock(&pinctrldev_list_mutex); return NULL; } *コメント [#we62e0bb]