drm_sysfs.c (b66696e3c0d8fc01efdbc701eba1276618332cb3) | drm_sysfs.c (7466f4cc508878a8328dff1c328a2b4108888d2e) |
---|---|
1 2/* 3 * drm_sysfs.c - Modifications to drm_sysfs_class.c to support 4 * extra sysfs attribute from DRM. Normal drm_sysfs_class 5 * does not allow adding attributes. 6 * 7 * Copyright (c) 2004 Jon Smirl <jonsmirl@gmail.com> 8 * Copyright (c) 2003-2004 Greg Kroah-Hartman <greg@kroah.com> 9 * Copyright (c) 2003-2004 IBM Corp. 10 * 11 * This file is released under the GPLv2 12 * 13 */ 14 15#include <linux/device.h> 16#include <linux/kdev_t.h> | 1 2/* 3 * drm_sysfs.c - Modifications to drm_sysfs_class.c to support 4 * extra sysfs attribute from DRM. Normal drm_sysfs_class 5 * does not allow adding attributes. 6 * 7 * Copyright (c) 2004 Jon Smirl <jonsmirl@gmail.com> 8 * Copyright (c) 2003-2004 Greg Kroah-Hartman <greg@kroah.com> 9 * Copyright (c) 2003-2004 IBM Corp. 10 * 11 * This file is released under the GPLv2 12 * 13 */ 14 15#include <linux/device.h> 16#include <linux/kdev_t.h> |
17#include <linux/gfp.h> | |
18#include <linux/err.h> 19 20#include "drm_sysfs.h" 21#include "drm_core.h" 22#include "drmP.h" 23 24#define to_drm_minor(d) container_of(d, struct drm_minor, kdev) 25#define to_drm_connector(d) container_of(d, struct drm_connector, kdev) --- 302 unchanged lines hidden (view full) --- 328static struct device_attribute connector_attrs_opt1[] = { 329 __ATTR_RO(subconnector), 330 __ATTR_RO(select_subconnector), 331}; 332 333static struct bin_attribute edid_attr = { 334 .attr.name = "edid", 335 .attr.mode = 0444, | 17#include <linux/err.h> 18 19#include "drm_sysfs.h" 20#include "drm_core.h" 21#include "drmP.h" 22 23#define to_drm_minor(d) container_of(d, struct drm_minor, kdev) 24#define to_drm_connector(d) container_of(d, struct drm_connector, kdev) --- 302 unchanged lines hidden (view full) --- 327static struct device_attribute connector_attrs_opt1[] = { 328 __ATTR_RO(subconnector), 329 __ATTR_RO(select_subconnector), 330}; 331 332static struct bin_attribute edid_attr = { 333 .attr.name = "edid", 334 .attr.mode = 0444, |
336 .size = 128, | 335 .size = 0, |
337 .read = edid_show, 338}; 339 340/** 341 * drm_sysfs_connector_add - add an connector to sysfs 342 * @connector: connector to add 343 * 344 * Create an connector device in sysfs, along with its associated connector --- 204 unchanged lines hidden --- | 336 .read = edid_show, 337}; 338 339/** 340 * drm_sysfs_connector_add - add an connector to sysfs 341 * @connector: connector to add 342 * 343 * Create an connector device in sysfs, along with its associated connector --- 204 unchanged lines hidden --- |