Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm/i915 Add some consts...
details: https://anonhg.NetBSD.org/src/rev/267b43888916
branches: riastradh-drm2
changeset: 788278:267b43888916
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:02:35 2013 +0000
description:
Add some consts to i915/dvo_ch7xxx.c for string literals.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/dvo_ch7xxx.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diffs (39 lines):
diff -r 02e42c5fc44a -r 267b43888916 sys/external/bsd/drm2/dist/drm/i915/dvo_ch7xxx.c
--- a/sys/external/bsd/drm2/dist/drm/i915/dvo_ch7xxx.c Wed Jul 24 03:02:21 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/dvo_ch7xxx.c Wed Jul 24 03:02:35 2013 +0000
@@ -84,7 +84,11 @@
static struct ch7xxx_id_struct {
uint8_t vid;
+#ifdef __NetBSD__
+ const char *name;
+#else
char *name;
+#endif
} ch7xxx_ids[] = {
{ CH7011_VID, "CH7011" },
{ CH7009A_VID, "CH7009A" },
@@ -96,7 +100,11 @@
bool quiet;
};
+#ifdef __NetBSD__
+static const char *ch7xxx_get_id(uint8_t vid)
+#else
static char *ch7xxx_get_id(uint8_t vid)
+#endif
{
int i;
@@ -179,7 +187,11 @@
/* this will detect the CH7xxx chip on the specified i2c bus */
struct ch7xxx_priv *ch7xxx;
uint8_t vendor, device;
+#ifdef __NetBSD__
+ const char *name;
+#else
char *name;
+#endif
ch7xxx = kzalloc(sizeof(struct ch7xxx_priv), GFP_KERNEL);
if (ch7xxx == NULL)
Home |
Main Index |
Thread Index |
Old Index