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/linux linux/hdmi: Fix hdmi_infoframe_u...
details: https://anonhg.NetBSD.org/src/rev/b5a66922ba30
branches: trunk
changeset: 368408:b5a66922ba30
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Jul 09 19:53:00 2022 +0000
description:
linux/hdmi: Fix hdmi_infoframe_unpack to record the unpacked header.
diffstat:
sys/external/bsd/drm2/linux/linux_hdmi.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 33838e9648e6 -r b5a66922ba30 sys/external/bsd/drm2/linux/linux_hdmi.c
--- a/sys/external/bsd/drm2/linux/linux_hdmi.c Sat Jul 09 19:31:34 2022 +0000
+++ b/sys/external/bsd/drm2/linux/linux_hdmi.c Sat Jul 09 19:53:00 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_hdmi.c,v 1.7 2022/07/09 18:41:23 riastradh Exp $ */
+/* $NetBSD: linux_hdmi.c,v 1.8 2022/07/09 19:53:00 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_hdmi.c,v 1.7 2022/07/09 18:41:23 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_hdmi.c,v 1.8 2022/07/09 19:53:00 riastradh Exp $");
#include <sys/types.h>
@@ -691,15 +691,14 @@
hdmi_infoframe_unpack(union hdmi_infoframe *frame, const void *buf,
size_t size)
{
- struct hdmi_infoframe_header header;
int ret;
memset(frame, 0, sizeof(*frame));
- ret = hdmi_infoframe_header_unpack(&header, buf, size);
+ ret = hdmi_infoframe_header_unpack(&frame->any, buf, size);
if (ret)
return ret;
- switch (header.type) {
+ switch (frame->any.type) {
case HDMI_INFOFRAME_TYPE_VENDOR:
return hdmi_vendor_infoframe_unpack(&frame->vendor.hdmi, buf,
size);
Home |
Main Index |
Thread Index |
Old Index