1*1b0e3941Sriastradh /* $NetBSD: drm_sysfs.c,v 1.9 2021/12/19 12:30:31 riastradh Exp $ */
26cb10275Sriastradh
36cb10275Sriastradh /*-
46cb10275Sriastradh * Copyright (c) 2013 The NetBSD Foundation, Inc.
56cb10275Sriastradh * All rights reserved.
66cb10275Sriastradh *
76cb10275Sriastradh * This code is derived from software contributed to The NetBSD Foundation
86cb10275Sriastradh * by Taylor R. Campbell.
96cb10275Sriastradh *
106cb10275Sriastradh * Redistribution and use in source and binary forms, with or without
116cb10275Sriastradh * modification, are permitted provided that the following conditions
126cb10275Sriastradh * are met:
136cb10275Sriastradh * 1. Redistributions of source code must retain the above copyright
146cb10275Sriastradh * notice, this list of conditions and the following disclaimer.
156cb10275Sriastradh * 2. Redistributions in binary form must reproduce the above copyright
166cb10275Sriastradh * notice, this list of conditions and the following disclaimer in the
176cb10275Sriastradh * documentation and/or other materials provided with the distribution.
186cb10275Sriastradh *
196cb10275Sriastradh * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
206cb10275Sriastradh * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
216cb10275Sriastradh * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
226cb10275Sriastradh * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
236cb10275Sriastradh * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
246cb10275Sriastradh * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
256cb10275Sriastradh * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
266cb10275Sriastradh * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
276cb10275Sriastradh * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
286cb10275Sriastradh * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
296cb10275Sriastradh * POSSIBILITY OF SUCH DAMAGE.
306cb10275Sriastradh */
316cb10275Sriastradh
326cb10275Sriastradh #include <sys/cdefs.h>
33*1b0e3941Sriastradh __KERNEL_RCSID(0, "$NetBSD: drm_sysfs.c,v 1.9 2021/12/19 12:30:31 riastradh Exp $");
346cb10275Sriastradh
35*1b0e3941Sriastradh #include <drm/drm_device.h>
36*1b0e3941Sriastradh #include <drm/drm_connector.h>
3760b2e15bSriastradh #include <drm/drm_sysfs.h>
383f26b5c5Sriastradh
3919ba5af6Sriastradh #include "../dist/drm/drm_internal.h"
4019ba5af6Sriastradh
4119ba5af6Sriastradh int
drm_sysfs_connector_add(struct drm_connector * connector)4219ba5af6Sriastradh drm_sysfs_connector_add(struct drm_connector *connector)
4319ba5af6Sriastradh {
44*1b0e3941Sriastradh connector->kdev = connector->dev->dev; /* XXX */
4519ba5af6Sriastradh return 0;
4619ba5af6Sriastradh }
4719ba5af6Sriastradh
4819ba5af6Sriastradh void
drm_sysfs_connector_remove(struct drm_connector * connector)4919ba5af6Sriastradh drm_sysfs_connector_remove(struct drm_connector *connector)
5019ba5af6Sriastradh {
5119ba5af6Sriastradh }
5219ba5af6Sriastradh
536cb10275Sriastradh void
drm_sysfs_hotplug_event(struct drm_device * dev)549573c322Sriastradh drm_sysfs_hotplug_event(struct drm_device *dev)
556cb10275Sriastradh {
566cb10275Sriastradh }
5777b5597aSriastradh
5877b5597aSriastradh void
drm_sysfs_connector_status_event(struct drm_connector * connector,struct drm_property * prop)599573c322Sriastradh drm_sysfs_connector_status_event(struct drm_connector *connector,
609573c322Sriastradh struct drm_property *prop)
6177b5597aSriastradh {
6277b5597aSriastradh }
63