Linux 内核设备驱动之GPIO驱动之GPIO GPIO描述符到GPIO CHIP

    xiaoxiao2021-03-25  74

    /**  * gpiod_to_chip - Return the GPIO chip to which a GPIO descriptor belongs  * @desc: descriptor to return the chip of  */ struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc) {  if (!desc || !desc->gdev || !desc->gdev->chip)   return NULL;  return desc->gdev->chip; } EXPORT_SYMBOL_GPL(gpiod_to_chip);                      
    转载请注明原文地址: https://ju.6miu.com/read-18170.html

    最新回复(0)