#ifndef __DRM_OF_H__ #define __DRM_OF_H__ #include <linux/of_graph.h> struct component_master_ops; struct component_match; struct device; struct drm_device; struct drm_encoder; struct device_node; #ifdef CONFIG_OF extern uint32_t drm_of_find_possible_crtcs(struct drm_device *dev, struct device_node *port); extern void drm_of_component_match_add(struct device *master, struct component_match **matchptr, int (*compare)(struct device *, void *), struct device_node *node); extern int drm_of_component_probe(struct device *dev, int (*compare_of)(struct device *, void *), const struct component_master_ops *m_ops); extern int drm_of_encoder_active_endpoint(struct device_node *node, struct drm_encoder *encoder, struct of_endpoint *endpoint); #else static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev, struct device_node *port) { return 0; } static inline void drm_of_component_match_add(struct device *master, struct component_match **matchptr, int (*compare)(struct device *, void *), struct device_node *node) { } static inline int drm_of_component_probe(struct device *dev, int (*compare_of)(struct device *, void *), const struct component_master_ops *m_ops) { return -EINVAL; } static inline int drm_of_encoder_active_endpoint(struct device_node *node, struct drm_encoder *encoder, struct of_endpoint *endpoint) { return -EINVAL; } #endif static inline int drm_of_encoder_active_endpoint_id(struct device_node *node, struct drm_encoder *encoder) { struct of_endpoint endpoint; int ret = drm_of_encoder_active_endpoint(node, encoder, &endpoint); return ret ?: endpoint.id; } static inline int drm_of_encoder_active_port_id(struct device_node *node, struct drm_encoder *encoder) { struct of_endpoint endpoint; int ret = drm_of_encoder_active_endpoint(node, encoder, &endpoint); return ret ?: endpoint.port; } #endif /* __DRM_OF_H__ */ sound/pci/asihpi/hpioctl.c?id=1c0e6a3613d3f0bb088a3160095c8da4c1214d02'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/pci/asihpi/hpioctl.c'> <input type='hidden' name='id' value='1c0e6a3613d3f0bb088a3160095c8da4c1214d02'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=1c0e6a3613d3f0bb088a3160095c8da4c1214d02'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound?id=1c0e6a3613d3f0bb088a3160095c8da4c1214d02'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci?id=1c0e6a3613d3f0bb088a3160095c8da4c1214d02'>pci</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/asihpi?id=1c0e6a3613d3f0bb088a3160095c8da4c1214d02'>asihpi</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/asihpi/hpioctl.c?id=1c0e6a3613d3f0bb088a3160095c8da4c1214d02'>hpioctl.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/asihpi/hpioctl.c?id=1c0e6a3613d3f0bb088a3160095c8da4c1214d02&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>