From e33b8a5be96a0c6990e16cfc6e00db4a29f8b45a Mon Sep 17 00:00:00 2001 From: marius Date: Thu, 15 May 2008 20:27:18 +0000 Subject: - Const'ify firmware and lookup-tables. - Obsolete redundant inst_name and unit members of struct sym_hcb. - Fix three more NULL vs. 0 confusions. - Use device_set_softc(9) to tell the bus layer that this driver allocates a instance of struct sym_hcb itself. --- sys/dev/sym/sym_fw1.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/sym/sym_fw1.h') diff --git a/sys/dev/sym/sym_fw1.h b/sys/dev/sym/sym_fw1.h index d7622d8..1a4d010 100644 --- a/sys/dev/sym/sym_fw1.h +++ b/sys/dev/sym/sym_fw1.h @@ -219,7 +219,7 @@ struct SYM_FWB_SCR { u32 snoopend [ 2]; }; -static struct SYM_FWA_SCR SYM_FWA_SCR = { +static const struct SYM_FWA_SCR SYM_FWA_SCR = { /*--------------------------< START >----------------------------*/ { /* * Switch the LED on. @@ -1342,7 +1342,7 @@ static struct SYM_FWA_SCR SYM_FWA_SCR = { }/*--------------------------<>----------------------------------*/ }; -static struct SYM_FWB_SCR SYM_FWB_SCR = { +static const struct SYM_FWB_SCR SYM_FWB_SCR = { /*-------------------------< NO_DATA >--------------------------*/ { SCR_JUMP, PADDR_B (data_ovrun), -- cgit v1.1