Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/omap Preserve const.
details: https://anonhg.NetBSD.org/src/rev/0f5a53dd584c
branches: trunk
changeset: 333942:0f5a53dd584c
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Nov 22 19:50:28 2014 +0000
description:
Preserve const.
diffstat:
sys/arch/arm/omap/am335x_cm_padconf.c | 8 ++++----
sys/arch/arm/omap/sitara_cm.h | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (49 lines):
diff -r 7513804bc598 -r 0f5a53dd584c sys/arch/arm/omap/am335x_cm_padconf.c
--- a/sys/arch/arm/omap/am335x_cm_padconf.c Sat Nov 22 19:50:00 2014 +0000
+++ b/sys/arch/arm/omap/am335x_cm_padconf.c Sat Nov 22 19:50:28 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: am335x_cm_padconf.c,v 1.2 2013/05/06 18:53:40 rkujawa Exp $ */
+/* $NetBSD: am335x_cm_padconf.c,v 1.3 2014/11/22 19:50:28 joerg Exp $ */
/*-
* Copyright (c) 2012 Damjan Marion <dmarion%FreeBSD.org@localhost>
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: am335x_cm_padconf.c,v 1.2 2013/05/06 18:53:40 rkujawa Exp $");
+__KERNEL_RCSID(0, "$NetBSD: am335x_cm_padconf.c,v 1.3 2014/11/22 19:50:28 joerg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -295,8 +295,8 @@
const struct sitara_cm_device sitara_cm_dev = {
.padconf_muxmode_mask = 0x7,
.padconf_sate_mask = 0x78,
- .padstate = (struct sitara_cm_padstate *) &ti_padstate_devmap,
- .padconf = (struct sitara_cm_padconf *) &ti_padconf_devmap,
+ .padstate = ti_padstate_devmap,
+ .padconf = ti_padconf_devmap,
};
int
diff -r 7513804bc598 -r 0f5a53dd584c sys/arch/arm/omap/sitara_cm.h
--- a/sys/arch/arm/omap/sitara_cm.h Sat Nov 22 19:50:00 2014 +0000
+++ b/sys/arch/arm/omap/sitara_cm.h Sat Nov 22 19:50:28 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sitara_cm.h,v 1.1 2013/04/17 14:31:02 bouyer Exp $ */
+/* $NetBSD: sitara_cm.h,v 1.2 2014/11/22 19:50:28 joerg Exp $ */
/*
* Copyright (c) 2010
* Ben Gray <ben.r.gray%gmail.com@localhost>.
@@ -59,8 +59,8 @@
struct sitara_cm_device {
uint16_t padconf_muxmode_mask;
uint16_t padconf_sate_mask;
- struct sitara_cm_padstate *padstate;
- struct sitara_cm_padconf *padconf;
+ const struct sitara_cm_padstate *padstate;
+ const struct sitara_cm_padconf *padconf;
};
int sitara_cm_padconf_set(const char *padname, const char *muxmode,
Home |
Main Index |
Thread Index |
Old Index