Module Name: src
Committed By: tcort
Date: Thu Jul 25 14:10:30 UTC 2013
Modified Files:
src/share/man/man9: edid.9
Log Message:
edid.9: fixes for example code
- 'struct edid_info' in edidvar.h uses 'struct videomode' so
videomode.h needs to be included too.
- edid_print takes a pointer to 'struct edid_info' so add the & operator.
OK by wiz@
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/share/man/man9/edid.9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man9/edid.9
diff -u src/share/man/man9/edid.9:1.6 src/share/man/man9/edid.9:1.7
--- src/share/man/man9/edid.9:1.6 Sat Jul 20 21:39:59 2013
+++ src/share/man/man9/edid.9 Thu Jul 25 14:10:30 2013
@@ -1,4 +1,4 @@
-.\" $NetBSD: edid.9,v 1.6 2013/07/20 21:39:59 wiz Exp $
+.\" $NetBSD: edid.9,v 1.7 2013/07/25 14:10:30 tcort Exp $
.\"
.\" Copyright 2006 Itronix Inc.
.\" All rights reserved.
@@ -29,13 +29,14 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd May 11, 2006
+.Dd July 24, 2013
.Dt EDID 9
.Os
.Sh NAME
.Nm edid
.Nd VESA Extended Display Identification Data
.Sh SYNOPSIS
+.In dev/videomode/videomode.h
.In dev/videomode/edidvar.h
.In dev/videomode/edidreg.h
.Ft int
@@ -118,7 +119,7 @@ to retrieve and print information about
...
if ((ddc_read_edid(tag, buffer, 128) == 0) &&
(edid_parse(buffer, &info) == 0))
- edid_print(info);
+ edid_print(&info);
...
.Ed
.Sh SEE ALSO