![]() |
|
|||
0001 /* 0002 * Copyright © 2015 Intel Corporation 0003 * 0004 * Permission is hereby granted, free of charge, to any person obtaining a 0005 * copy of this software and associated documentation files (the "Software"), 0006 * to deal in the Software without restriction, including without limitation 0007 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 0008 * and/or sell copies of the Software, and to permit persons to whom the 0009 * Software is furnished to do so, subject to the following conditions: 0010 * 0011 * The above copyright notice and this permission notice (including the next 0012 * paragraph) shall be included in all copies or substantial portions of the 0013 * Software. 0014 * 0015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 0016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 0018 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 0019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 0020 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 0021 * IN THE SOFTWARE. 0022 * 0023 * Authors: 0024 * Rafael Antognolli <rafael.antognolli@intel.com> 0025 * 0026 */ 0027 0028 #include <linux/module.h> 0029 0030 #include <drm/drm_edid.h> 0031 #include <drm/drm_print.h> 0032 0033 #include "drm_crtc_helper_internal.h" 0034 0035 MODULE_AUTHOR("David Airlie, Jesse Barnes"); 0036 MODULE_DESCRIPTION("DRM KMS helper"); 0037 MODULE_LICENSE("GPL and additional rights"); 0038 0039 #if IS_ENABLED(CONFIG_DRM_LOAD_EDID_FIRMWARE) 0040 0041 /* Backward compatibility for drm_kms_helper.edid_firmware */ 0042 static int edid_firmware_set(const char *val, const struct kernel_param *kp) 0043 { 0044 DRM_NOTE("drm_kms_helper.edid_firmware is deprecated, please use drm.edid_firmware instead.\n"); 0045 0046 return __drm_set_edid_firmware_path(val); 0047 } 0048 0049 static int edid_firmware_get(char *buffer, const struct kernel_param *kp) 0050 { 0051 return __drm_get_edid_firmware_path(buffer, PAGE_SIZE); 0052 } 0053 0054 static const struct kernel_param_ops edid_firmware_ops = { 0055 .set = edid_firmware_set, 0056 .get = edid_firmware_get, 0057 }; 0058 0059 module_param_cb(edid_firmware, &edid_firmware_ops, NULL, 0644); 0060 __MODULE_PARM_TYPE(edid_firmware, "charp"); 0061 MODULE_PARM_DESC(edid_firmware, 0062 "DEPRECATED. Use drm.edid_firmware module parameter instead."); 0063 0064 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |