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

来源:互联网 发布:路由器网络模式选哪个 编辑:程序博客网 时间:2024/04/29 09:52
 
/** * 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);
 
 
 
 
 
 
 
 
 
 
 
0 0
原创粉丝点击