linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/3] Make amba_driver id_table const
@ 2011-02-19 15:48 Russell King - ARM Linux
  0 siblings, 0 replies; only message in thread
From: Russell King - ARM Linux @ 2011-02-19 15:48 UTC (permalink / raw)
  To: linux-arm-kernel

Now that the bus level code deals with a const id table, we can also
make the ID table in the amba_driver structure also const.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
 include/linux/amba/bus.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h
index a0ccf28..9cd7f8e 100644
--- a/include/linux/amba/bus.h
+++ b/include/linux/amba/bus.h
@@ -48,7 +48,7 @@ struct amba_driver {
 	void			(*shutdown)(struct amba_device *);
 	int			(*suspend)(struct amba_device *, pm_message_t);
 	int			(*resume)(struct amba_device *);
-	struct amba_id		*id_table;
+	const struct amba_id	*id_table;
 };
 
 enum amba_vendor {

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-19 15:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-19 15:48 [PATCH 3/3] Make amba_driver id_table const Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).