Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm prop_dictionary_get_cstring -...
details: https://anonhg.NetBSD.org/src/rev/c993a94872b7
branches: trunk
changeset: 973331:c993a94872b7
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Jun 27 13:39:05 2020 +0000
description:
prop_dictionary_get_cstring -> prop_dictionary_get_string
diffstat:
sys/external/bsd/drm2/dist/drm/drm_crtc.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 043ac748946d -r c993a94872b7 sys/external/bsd/drm2/dist/drm/drm_crtc.c
--- a/sys/external/bsd/drm2/dist/drm/drm_crtc.c Sat Jun 27 13:32:00 2020 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_crtc.c Sat Jun 27 13:39:05 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_crtc.c,v 1.16 2020/02/14 14:34:57 maya Exp $ */
+/* $NetBSD: drm_crtc.c,v 1.17 2020/06/27 13:39:05 jmcneill Exp $ */
/*
* Copyright (c) 2006-2008 Intel Corporation
@@ -32,7 +32,7 @@
* Jesse Barnes <jesse.barnes%intel.com@localhost>
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_crtc.c,v 1.16 2020/02/14 14:34:57 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_crtc.c,v 1.17 2020/06/27 13:39:05 jmcneill Exp $");
#include <linux/ctype.h>
#include <linux/list.h>
@@ -825,13 +825,14 @@
static void drm_connector_get_cmdline_mode(struct drm_connector *connector)
{
struct drm_cmdline_mode *mode = &connector->cmdline_mode;
- char *option = NULL;
#ifdef __NetBSD__
+ const char *option;
prop_dictionary_t prop = device_properties(connector->dev->dev);
- if (!prop_dictionary_get_cstring(prop, connector->name, &option))
+ if (!prop_dictionary_get_string(prop, connector->name, &option))
return;
#else
+ char *option = NULL;
if (fb_get_options(connector->name, &option))
return;
#endif
Home |
Main Index |
Thread Index |
Old Index