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/include/linux/regulator Make this comp...



details:   https://anonhg.NetBSD.org/src/rev/bc361e2b833e
branches:  trunk
changeset: 364891:bc361e2b833e
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 15:29:54 2018 +0000

description:
Make this compile.

diffstat:

 sys/external/bsd/drm2/include/linux/regulator/consumer.h |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r a7dd273e726e -r bc361e2b833e sys/external/bsd/drm2/include/linux/regulator/consumer.h
--- a/sys/external/bsd/drm2/include/linux/regulator/consumer.h  Mon Aug 27 15:29:42 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/regulator/consumer.h  Mon Aug 27 15:29:54 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: consumer.h,v 1.3 2018/08/27 07:49:36 riastradh Exp $   */
+/*     $NetBSD: consumer.h,v 1.4 2018/08/27 15:29:54 riastradh Exp $   */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -38,6 +38,8 @@
 
 #ifdef FDT
 
+#include <dev/fdt/fdtvar.h>
+
 struct regulator {
        struct fdtbus_regulator regulator;
 };
@@ -56,13 +58,12 @@
        }
 
        KASSERTMSG(uvolt <= INT_MAX, "high voltage: %u uV", uvolt);
-       return (int)uvol;
+       return (int)uvolt;
 }
 
 static inline int
 regulator_set_voltage(struct regulator *reg, int min_uvolt, int max_uvolt)
 {
-       unsigned v;
 
        if (min_uvolt < 0 || max_uvolt < 0)
                return -EINVAL;



Home | Main Index | Thread Index | Old Index