Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ir Constify a little.
details: https://anonhg.NetBSD.org/src/rev/6fc85d88cc7a
branches: trunk
changeset: 518793:6fc85d88cc7a
user: augustss <augustss%NetBSD.org@localhost>
date: Wed Dec 05 20:00:15 2001 +0000
description:
Constify a little.
diffstat:
sys/dev/ir/ir.h | 7 ++-----
sys/dev/ir/irdaio.h | 3 ++-
sys/dev/ir/irframe.c | 4 ++--
sys/dev/ir/irframevar.h | 13 ++++++++-----
4 files changed, 14 insertions(+), 13 deletions(-)
diffs (93 lines):
diff -r 183ceba999c9 -r 6fc85d88cc7a sys/dev/ir/ir.h
--- a/sys/dev/ir/ir.h Wed Dec 05 19:59:54 2001 +0000
+++ b/sys/dev/ir/ir.h Wed Dec 05 20:00:15 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ir.h,v 1.1 2001/12/02 10:44:43 augustss Exp $ */
+/* $NetBSD: ir.h,v 1.2 2001/12/05 20:00:15 augustss Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
int ia_type;
#define IR_TYPE_IRFRAME 0
#define IR_TYPE_CIR 1
- void *ia_methods;
+ const void *ia_methods;
void *ia_handle;
};
@@ -48,8 +48,5 @@
int ir_print(void *aux, const char *pnp);
-struct device *irframe_alloc(size_t, struct irframe_methods *, void *);
-void irframe_dealloc(struct device *);
-
#define splir spltty
#define IPL_IR IPL_TTY
diff -r 183ceba999c9 -r 6fc85d88cc7a sys/dev/ir/irdaio.h
--- a/sys/dev/ir/irdaio.h Wed Dec 05 19:59:54 2001 +0000
+++ b/sys/dev/ir/irdaio.h Wed Dec 05 20:00:15 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irdaio.h,v 1.2 2001/12/04 23:33:33 augustss Exp $ */
+/* $NetBSD: irdaio.h,v 1.3 2001/12/05 20:00:15 augustss Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -91,6 +91,7 @@
#define DONGLE_ACTISYS_PLUS 4
#define DONGLE_LITELINK 5
#define DONGLE_GIRBIL 6
+#define DONGLE_MAX 7
#endif /* _SYS_DEV_IRDA_H_ */
diff -r 183ceba999c9 -r 6fc85d88cc7a sys/dev/ir/irframe.c
--- a/sys/dev/ir/irframe.c Wed Dec 05 19:59:54 2001 +0000
+++ b/sys/dev/ir/irframe.c Wed Dec 05 20:00:15 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irframe.c,v 1.8 2001/12/05 14:50:14 augustss Exp $ */
+/* $NetBSD: irframe.c,v 1.9 2001/12/05 20:00:15 augustss Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -300,7 +300,7 @@
struct device *
-irframe_alloc(size_t size, struct irframe_methods *m, void *h)
+irframe_alloc(size_t size, const struct irframe_methods *m, void *h)
{
struct cfdriver *cd = &irframe_cd;
struct device *dev;
diff -r 183ceba999c9 -r 6fc85d88cc7a sys/dev/ir/irframevar.h
--- a/sys/dev/ir/irframevar.h Wed Dec 05 19:59:54 2001 +0000
+++ b/sys/dev/ir/irframevar.h Wed Dec 05 20:00:15 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irframevar.h,v 1.4 2001/12/04 19:56:17 augustss Exp $ */
+/* $NetBSD: irframevar.h,v 1.5 2001/12/05 20:00:15 augustss Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -48,10 +48,10 @@
};
struct irframe_softc {
- struct device sc_dev;
- struct irframe_methods *sc_methods;
- void *sc_handle;
- char sc_open;
+ struct device sc_dev;
+ const struct irframe_methods *sc_methods;
+ void *sc_handle;
+ char sc_open;
};
void irframe_frame_available(struct device *);
@@ -60,3 +60,6 @@
#define IRDA_DEFAULT_EBOFS 10
#define IRDA_DEFAULT_SIZE 386
+struct device *irframe_alloc(size_t, const struct irframe_methods *, void *);
+void irframe_dealloc(struct device *);
+
Home |
Main Index |
Thread Index |
Old Index