All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpio: pl061: constify amba_id
@ 2017-08-23 16:15 Arvind Yadav
  2017-08-23 16:16 ` [PATCH] drm: pl111: " Arvind Yadav
  2017-08-31 11:58 ` [PATCH] gpio: pl061: " Linus Walleij
  0 siblings, 2 replies; 4+ messages in thread
From: Arvind Yadav @ 2017-08-23 16:15 UTC (permalink / raw)
  To: linus.walleij; +Cc: linux-kernel, linux-gpio

amba_id are not supposed to change at runtime. All functions
working with const amba_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 drivers/gpio/gpio-pl061.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-pl061.c b/drivers/gpio/gpio-pl061.c
index 3d3d6b6..6aaaab7 100644
--- a/drivers/gpio/gpio-pl061.c
+++ b/drivers/gpio/gpio-pl061.c
@@ -405,7 +405,7 @@ static const struct dev_pm_ops pl061_dev_pm_ops = {
 };
 #endif
 
-static struct amba_id pl061_ids[] = {
+static const struct amba_id pl061_ids[] = {
 	{
 		.id	= 0x00041061,
 		.mask	= 0x000fffff,
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-09-18 17:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23 16:15 [PATCH] gpio: pl061: constify amba_id Arvind Yadav
2017-08-23 16:16 ` [PATCH] drm: pl111: " Arvind Yadav
2017-09-18 17:28   ` Eric Anholt
2017-08-31 11:58 ` [PATCH] gpio: pl061: " Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.