*参照元 [#n3ca5539] #backlinks *説明 [#oeb8611e] -パス: [[linux-4.4.1/drivers/gpio/gpiolib-of.c]] -FIXME: これは何? --説明 **引数 [#q40879fc] -struct gpio_chip *chip -- --[[linux-4.4.1/gpio_chip]] **返り値 [#w1d83d0b] -int **参考 [#nd5c05ca] *実装 [#oe73a98f] 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; } - --[[linux-4.4.1/of_gpio_simple_xlate()]] status = of_gpiochip_add_pin_range(chip); if (status) return status; - --[[linux-4.4.1/of_gpiochip_add_pin_range()]] of_node_get(chip->of_node); - --[[linux-4.4.1/of_node_get()]] of_gpiochip_scan_gpios(chip); - --[[linux-4.4.1/of_gpiochip_scan_gpios()]] return 0; } *コメント [#ge9339db]