Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c Use one more value from "locators.h", also make ...
details: https://anonhg.NetBSD.org/src/rev/c6d0e7b9f7e4
branches: trunk
changeset: 816773:c6d0e7b9f7e4
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat Jul 23 18:00:01 2016 +0000
description:
Use one more value from "locators.h", also make sure 'size' is initialized.
diffstat:
sys/dev/i2c/i2c.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a431ad5f0370 -r c6d0e7b9f7e4 sys/dev/i2c/i2c.c
--- a/sys/dev/i2c/i2c.c Sat Jul 23 17:42:37 2016 +0000
+++ b/sys/dev/i2c/i2c.c Sat Jul 23 18:00:01 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i2c.c,v 1.53 2016/07/23 17:42:37 jakllsch Exp $ */
+/* $NetBSD: i2c.c,v 1.54 2016/07/23 18:00:01 jakllsch Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.53 2016/07/23 17:42:37 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.54 2016/07/23 18:00:01 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -254,7 +254,7 @@
if (prop_dictionary_get_uint32(dev, "size", &size))
loc[IICCF_SIZE] = size;
else
- loc[IICCF_SIZE] = -1;
+ size = loc[IICCF_SIZE] = IICCF_SIZE_DEFAULT;
memset(&ia, 0, sizeof ia);
ia.ia_addr = addr;
Home |
Main Index |
Thread Index |
Old Index