linux-4.4.1/pinctrl_request_gpio()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#b5156b86]
#backlinks
*説明 [#w62ee860]
-パス: [[linux-4.4.1/drivers/pinctrl/core.c]]
-FIXME: これは何?
--説明
**引数 [#pb6ee7f5]
-unsigned gpio
--
**返り値 [#pc75c28e]
-int
--
**参考 [#r2bc3793]
*実装 [#yf0e30b8]
/**
* pinctrl_request_gpio() - request a single pin to be u...
* @gpio: the GPIO pin number from the GPIO subsystem nu...
*
* This function should *ONLY* be used from gpiolib-base...
* as part of their gpio_request() semantics, platforms ...
* shall *NOT* request GPIO pins to be muxed in.
*/
int pinctrl_request_gpio(unsigned gpio)
{
struct pinctrl_dev *pctldev;
struct pinctrl_gpio_range *range;
int ret;
int pin;
-
--[[linux-4.4.1/pinctrl_dev]]
--[[linux-4.4.1/pinctrl_gpio_range]]
ret = pinctrl_get_device_gpio_range(gpio, &pctld...
if (ret) {
if (pinctrl_ready_for_gpio_range(gpio))
ret = 0;
return ret;
}
-
--[[linux-4.4.1/pinctrl_get_device_gpio_range()]]
--[[linux-4.4.1/pinctrl_ready_for_gpio_range()]]
mutex_lock(&pctldev->mutex);
-
--[[linux-4.4.1/mutex_lock()]]
/* Convert to the pin controllers number space */
pin = gpio_to_pin(range, gpio);
-
--[[linux-4.4.1/gpio_to_pin()]]
ret = pinmux_request_gpio(pctldev, range, pin, g...
-
--[[linux-4.4.1/pinmux_request_gpio()]]
mutex_unlock(&pctldev->mutex);
-
--[[linux-4.4.1/mutex_unlock()]]
return ret;
}
EXPORT_SYMBOL_GPL(pinctrl_request_gpio);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]
*コメント [#r91cadec]
終了行:
*参照元 [#b5156b86]
#backlinks
*説明 [#w62ee860]
-パス: [[linux-4.4.1/drivers/pinctrl/core.c]]
-FIXME: これは何?
--説明
**引数 [#pb6ee7f5]
-unsigned gpio
--
**返り値 [#pc75c28e]
-int
--
**参考 [#r2bc3793]
*実装 [#yf0e30b8]
/**
* pinctrl_request_gpio() - request a single pin to be u...
* @gpio: the GPIO pin number from the GPIO subsystem nu...
*
* This function should *ONLY* be used from gpiolib-base...
* as part of their gpio_request() semantics, platforms ...
* shall *NOT* request GPIO pins to be muxed in.
*/
int pinctrl_request_gpio(unsigned gpio)
{
struct pinctrl_dev *pctldev;
struct pinctrl_gpio_range *range;
int ret;
int pin;
-
--[[linux-4.4.1/pinctrl_dev]]
--[[linux-4.4.1/pinctrl_gpio_range]]
ret = pinctrl_get_device_gpio_range(gpio, &pctld...
if (ret) {
if (pinctrl_ready_for_gpio_range(gpio))
ret = 0;
return ret;
}
-
--[[linux-4.4.1/pinctrl_get_device_gpio_range()]]
--[[linux-4.4.1/pinctrl_ready_for_gpio_range()]]
mutex_lock(&pctldev->mutex);
-
--[[linux-4.4.1/mutex_lock()]]
/* Convert to the pin controllers number space */
pin = gpio_to_pin(range, gpio);
-
--[[linux-4.4.1/gpio_to_pin()]]
ret = pinmux_request_gpio(pctldev, range, pin, g...
-
--[[linux-4.4.1/pinmux_request_gpio()]]
mutex_unlock(&pctldev->mutex);
-
--[[linux-4.4.1/mutex_unlock()]]
return ret;
}
EXPORT_SYMBOL_GPL(pinctrl_request_gpio);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]
*コメント [#r91cadec]
ページ名: