Module Name: src Committed By: jdc Date: Mon Jan 11 18:23:53 UTC 2016
Modified Files: src/sys/dev/i2c: adm1026.c Log Message: Increase the number of read retries (to 5). To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/adm1026.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/i2c/adm1026.c diff -u src/sys/dev/i2c/adm1026.c:1.1 src/sys/dev/i2c/adm1026.c:1.2 --- src/sys/dev/i2c/adm1026.c:1.1 Wed Dec 16 07:56:48 2015 +++ src/sys/dev/i2c/adm1026.c Mon Jan 11 18:23:52 2016 @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: adm1026.c,v 1.1 2015/12/16 07:56:48 jdc Exp $"); +__KERNEL_RCSID(0, "$NetBSD: adm1026.c,v 1.2 2016/01/11 18:23:52 jdc Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -492,7 +492,7 @@ adm1026_read_volt(struct adm1026_softc * static int adm1026_read_reg(struct adm1026_softc *sc, uint8_t reg, uint8_t *val) { -#define ADM1026_READ_RETRIES 4 +#define ADM1026_READ_RETRIES 5 int i, j, err = 0; uint8_t creg, cval, tmp[ADM1026_READ_RETRIES + 1];