Preserve const.

This commit is contained in:
joerg 2014-11-22 19:50:28 +00:00
parent 3283ff71d1
commit d01eb0e62c
2 changed files with 7 additions and 7 deletions

View File

@ -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>
* 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_padconf_devmap[] = {
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

View File

@ -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>.
@ -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,