参照元

説明

引数

返り値

参考

実装

int of_gpiochip_add(struct gpio_chip *chip)
{
        int status;

        if ((!chip->of_node) && (chip->dev))
                chip->of_node = chip->dev->of_node;

        if (!chip->of_node)
                return 0;

        if (!chip->of_xlate) {
                chip->of_gpio_n_cells = 2;
                chip->of_xlate = of_gpio_simple_xlate;
        }
        status = of_gpiochip_add_pin_range(chip);
        if (status)
                return status;
        of_node_get(chip->of_node);
        of_gpiochip_scan_gpios(chip);
        return 0;
}

コメント


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