Module Name: src
Committed By: joerg
Date: Sat Nov 22 19:50:28 UTC 2014
Modified Files:
src/sys/arch/arm/omap: am335x_cm_padconf.c sitara_cm.h
Log Message:
Preserve const.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/omap/am335x_cm_padconf.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/omap/sitara_cm.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/omap/am335x_cm_padconf.c
diff -u src/sys/arch/arm/omap/am335x_cm_padconf.c:1.2 src/sys/arch/arm/omap/am335x_cm_padconf.c:1.3
--- src/sys/arch/arm/omap/am335x_cm_padconf.c:1.2 Mon May 6 18:53:40 2013
+++ src/sys/arch/arm/omap/am335x_cm_padconf.c Sat Nov 22 19:50:28 2014
@@ -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 <[email protected]>
* 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_padconf ti_padcon
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
Index: src/sys/arch/arm/omap/sitara_cm.h
diff -u src/sys/arch/arm/omap/sitara_cm.h:1.1 src/sys/arch/arm/omap/sitara_cm.h:1.2
--- src/sys/arch/arm/omap/sitara_cm.h:1.1 Wed Apr 17 14:31:02 2013
+++ src/sys/arch/arm/omap/sitara_cm.h Sat Nov 22 19:50:28 2014
@@ -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 <[email protected]>.
@@ -59,8 +59,8 @@ struct sitara_cm_padstate {
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,