diff options
author | Michael Knudsen <mk@cvs.openbsd.org> | 2009-08-22 02:54:52 +0000 |
---|---|---|
committer | Michael Knudsen <mk@cvs.openbsd.org> | 2009-08-22 02:54:52 +0000 |
commit | 06e29584d413606b21c240635e12d7500b385ae5 (patch) | |
tree | 5e6f8a395a9c0030fc223059bb7a1b39529330c5 /sys/arch/hppa/dev | |
parent | c647754eb2c6d41408fe754bf7167383562e01b1 (diff) |
Constify the what/name parameter of pci_intr_establish().
Tested by myself, sthen, oga, kettenis, and jasper.
Input from sthen and jasper.
ok kettenis
(Manpage follows shortly.)
Diffstat (limited to 'sys/arch/hppa/dev')
-rw-r--r-- | sys/arch/hppa/dev/apic.c | 4 | ||||
-rw-r--r-- | sys/arch/hppa/dev/dino.c | 6 | ||||
-rw-r--r-- | sys/arch/hppa/dev/elroyvar.h | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/hppa/dev/apic.c b/sys/arch/hppa/dev/apic.c index 7e8bc7f684d..58c48bc62dc 100644 --- a/sys/arch/hppa/dev/apic.c +++ b/sys/arch/hppa/dev/apic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apic.c,v 1.7 2007/10/06 23:50:54 krw Exp $ */ +/* $OpenBSD: apic.c,v 1.8 2009/08/22 02:54:50 mk Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -149,7 +149,7 @@ apic_intr_string(void *v, pci_intr_handle_t ih) void * apic_intr_establish(void *v, pci_intr_handle_t ih, - int pri, int (*handler)(void *), void *arg, char *name) + int pri, int (*handler)(void *), void *arg, const char *name) { struct elroy_softc *sc = v; volatile struct elroy_regs *r = sc->sc_regs; diff --git a/sys/arch/hppa/dev/dino.c b/sys/arch/hppa/dev/dino.c index 5af79ba4e5b..e06acfdf213 100644 --- a/sys/arch/hppa/dev/dino.c +++ b/sys/arch/hppa/dev/dino.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dino.c,v 1.25 2009/03/30 21:24:57 kettenis Exp $ */ +/* $OpenBSD: dino.c,v 1.26 2009/08/22 02:54:50 mk Exp $ */ /* * Copyright (c) 2003-2005 Michael Shalayeff @@ -165,7 +165,7 @@ void dino_conf_write(void *, pcitag_t, int, pcireg_t); int dino_intr_map(struct pci_attach_args *, pci_intr_handle_t *); const char *dino_intr_string(void *, pci_intr_handle_t); void * dino_intr_establish(void *, pci_intr_handle_t, int, int (*)(void *), - void *, char *); + void *, const char *); void dino_intr_disestablish(void *, void *); int dino_iomap(void *, bus_addr_t, bus_size_t, int, bus_space_handle_t *); int dino_memmap(void *, bus_addr_t, bus_size_t, int, bus_space_handle_t *); @@ -391,7 +391,7 @@ dino_intr_string(void *v, pci_intr_handle_t ih) void * dino_intr_establish(void *v, pci_intr_handle_t ih, - int pri, int (*handler)(void *), void *arg, char *name) + int pri, int (*handler)(void *), void *arg, const char *name) { struct dino_softc *sc = v; volatile struct dino_regs *r = sc->sc_regs; diff --git a/sys/arch/hppa/dev/elroyvar.h b/sys/arch/hppa/dev/elroyvar.h index 157ad204a7d..f7c6d5c9dc9 100644 --- a/sys/arch/hppa/dev/elroyvar.h +++ b/sys/arch/hppa/dev/elroyvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: elroyvar.h,v 1.3 2007/06/17 14:51:21 kettenis Exp $ */ +/* $OpenBSD: elroyvar.h,v 1.4 2009/08/22 02:54:50 mk Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -50,7 +50,7 @@ int apic_intr(void *v); int apic_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp); const char *apic_intr_string(void *v, pci_intr_handle_t ih); void *apic_intr_establish(void *v, pci_intr_handle_t ih, int pri, - int (*handler)(void *), void *arg, char *name); + int (*handler)(void *), void *arg, const char *name); void apic_intr_disestablish(void *v, void *cookie); void elroy_write32(volatile u_int32_t *p, u_int32_t v); |