diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-01-22 05:16:56 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-01-22 05:16:56 +0000 |
commit | ab0f83ec501e7f8169955b185507717d064ddf98 (patch) | |
tree | 59adb7f73ce282ce462bb6cd6c53fdffff86f8cb /sys/dev/pci/drm/drmP.h | |
parent | d1a968fbe74fd6fc3709024cb8e1249e4df1fc04 (diff) |
Provide inline dummy implementations of drm_sysfs_connector_add() and
drm_sysfs_connector_remove() and call those instead of #ifdef'ing them out.
Reduces the noise when diffing against Linux.
Diffstat (limited to 'sys/dev/pci/drm/drmP.h')
-rw-r--r-- | sys/dev/pci/drm/drmP.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h index a18e65aca49..a8bf3e2c065 100644 --- a/sys/dev/pci/drm/drmP.h +++ b/sys/dev/pci/drm/drmP.h @@ -1,4 +1,4 @@ -/* $OpenBSD: drmP.h,v 1.160 2014/01/22 04:04:53 kettenis Exp $ */ +/* $OpenBSD: drmP.h,v 1.161 2014/01/22 05:16:55 kettenis Exp $ */ /* drmP.h -- Private header for Direct Rendering Manager -*- linux-c -*- * Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com */ @@ -1033,6 +1033,17 @@ int drm_agp_bind_ioctl(struct drm_device *, void *, struct drm_file *); int drm_sg_alloc_ioctl(struct drm_device *, void *, struct drm_file *); int drm_sg_free(struct drm_device *, void *, struct drm_file *); +static inline int +drm_sysfs_connector_add(struct drm_connector *connector) +{ + return 0; +} + +static inline void +drm_sysfs_connector_remove(struct drm_connector *connector) +{ +} + /* Graphics Execution Manager library functions (drm_gem.c) */ void drm_gem_object_release(struct drm_gem_object *obj); struct drm_gem_object *drm_gem_object_alloc(struct drm_device *dev, |