Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2c write reg value not target freq in act8846_set_v...



details:   https://anonhg.NetBSD.org/src/rev/0b9bb16782c8
branches:  trunk
changeset: 335283:0b9bb16782c8
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Jan 01 17:59:18 2015 +0000

description:
write reg value not target freq in act8846_set_voltage

diffstat:

 sys/dev/i2c/act8846.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 486e9d01eda2 -r 0b9bb16782c8 sys/dev/i2c/act8846.c
--- a/sys/dev/i2c/act8846.c     Thu Jan 01 17:46:09 2015 +0000
+++ b/sys/dev/i2c/act8846.c     Thu Jan 01 17:59:18 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: act8846.c,v 1.1 2015/01/01 17:33:18 jmcneill Exp $ */
+/* $NetBSD: act8846.c,v 1.2 2015/01/01 17:59:18 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #define ACT_DEBUG
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: act8846.c,v 1.1 2015/01/01 17:33:18 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: act8846.c,v 1.2 2015/01/01 17:59:18 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -250,7 +250,7 @@
        if (n == __arraycount(act8846_vset))
                return EINVAL;
 
-       val = __SHIFTIN(act8846_vset[n], ACT_VSET_VSET);
+       val = __SHIFTIN(n, ACT_VSET_VSET);
 
        iic_acquire_bus(sc->sc_i2c, 0);
        error = act8846_write(sc, c->c_base + ACT_VSET0_OFFSET, val);



Home | Main Index | Thread Index | Old Index