参照元

説明

引数

返り値

参考

実装

/**
 * of_parse_phandle - Resolve a phandle property to a device_node pointer
 * @np: Pointer to device node holding phandle property
 * @phandle_name: Name of property holding a phandle value
 * @index: For properties holding a table of phandles, this is the index into
 *         the table
 *
 * Returns the device_node pointer with refcount incremented.  Use
 * of_node_put() on it when done.
 */
struct device_node *of_parse_phandle(const struct device_node *np,
                                     const char *phandle_name, int index)
{
        struct of_phandle_args args;
        if (index < 0)
                return NULL;

        if (__of_parse_phandle_with_args(np, phandle_name, NULL, 0,
                                         index, &args))
                return NULL;
        return args.np;
}
EXPORT_SYMBOL(of_parse_phandle);

コメント


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2016-03-07 (月) 11:15:04