* [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
* [PATCH] drm: pl111: constify amba_id
2017-08-23 16:15 [PATCH] gpio: pl061: constify amba_id Arvind Yadav
@ 2017-08-23 16:16 ` Arvind Yadav
2017-09-18 17:28 ` Eric Anholt
2017-08-31 11:58 ` [PATCH] gpio: pl061: " Linus Walleij
1 sibling, 1 reply; 4+ messages in thread
From: Arvind Yadav @ 2017-08-23 16:16 UTC (permalink / raw)
To: eric, airlied; +Cc: linux-kernel, dri-devel
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/gpu/drm/pl111/pl111_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/pl111/pl111_drv.c b/drivers/gpu/drm/pl111/pl111_drv.c
index ac8771b..522875c 100644
--- a/drivers/gpu/drm/pl111/pl111_drv.c
+++ b/drivers/gpu/drm/pl111/pl111_drv.c
@@ -243,7 +243,7 @@ static int pl111_amba_remove(struct amba_device *amba_dev)
return 0;
}
-static struct amba_id pl111_id_table[] = {
+static const struct amba_id pl111_id_table[] = {
{
.id = 0x00041111,
.mask = 0x000fffff,
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] gpio: pl061: constify amba_id
2017-08-23 16:15 [PATCH] gpio: pl061: constify amba_id Arvind Yadav
2017-08-23 16:16 ` [PATCH] drm: pl111: " Arvind Yadav
@ 2017-08-31 11:58 ` Linus Walleij
1 sibling, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2017-08-31 11:58 UTC (permalink / raw)
To: Arvind Yadav; +Cc: linux-kernel, linux-gpio
On Wed, Aug 23, 2017 at 6:15 PM, Arvind Yadav <arvind.yadav.cs@gmail.com> wrote:
> 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>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm: pl111: constify amba_id
2017-08-23 16:16 ` [PATCH] drm: pl111: " Arvind Yadav
@ 2017-09-18 17:28 ` Eric Anholt
0 siblings, 0 replies; 4+ messages in thread
From: Eric Anholt @ 2017-09-18 17:28 UTC (permalink / raw)
To: Arvind Yadav, airlied; +Cc: linux-kernel, dri-devel
[-- Attachment #1: Type: text/plain, Size: 971 bytes --]
Arvind Yadav <arvind.yadav.cs@gmail.com> writes:
> 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/gpu/drm/pl111/pl111_drv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/pl111/pl111_drv.c b/drivers/gpu/drm/pl111/pl111_drv.c
> index ac8771b..522875c 100644
> --- a/drivers/gpu/drm/pl111/pl111_drv.c
> +++ b/drivers/gpu/drm/pl111/pl111_drv.c
> @@ -243,7 +243,7 @@ static int pl111_amba_remove(struct amba_device *amba_dev)
> return 0;
> }
>
> -static struct amba_id pl111_id_table[] = {
> +static const struct amba_id pl111_id_table[] = {
> {
> .id = 0x00041111,
> .mask = 0x000fffff,
> --
> 2.7.4
Sorry about dropping your patch here -- Linus was working on a bigger
series for pl110 support that also happened to fix this.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [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.