* [PATCH] ahci: st: Make of_device_id array const
@ 2014-07-22 14:15 Kiran Padwal
2014-07-22 14:53 ` Lee Jones
2014-07-22 15:44 ` Tejun Heo
0 siblings, 2 replies; 3+ messages in thread
From: Kiran Padwal @ 2014-07-22 14:15 UTC (permalink / raw)
To: tj; +Cc: lee.jones, kiran.padwal21, linux-ide, linux-kernel
Make of_device_id array const, because all OF functions handle it as const.
Signed-off-by: Kiran Padwal <kiran.padwal21@gmail.com>
---
drivers/ata/ahci_st.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c
index 2595598..29821b9 100644
--- a/drivers/ata/ahci_st.c
+++ b/drivers/ata/ahci_st.c
@@ -221,7 +221,7 @@ static int st_ahci_resume(struct device *dev)
static SIMPLE_DEV_PM_OPS(st_ahci_pm_ops, st_ahci_suspend, st_ahci_resume);
-static struct of_device_id st_ahci_match[] = {
+static const struct of_device_id st_ahci_match[] = {
{ .compatible = "st,ahci", },
{},
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ahci: st: Make of_device_id array const
2014-07-22 14:15 [PATCH] ahci: st: Make of_device_id array const Kiran Padwal
@ 2014-07-22 14:53 ` Lee Jones
2014-07-22 15:44 ` Tejun Heo
1 sibling, 0 replies; 3+ messages in thread
From: Lee Jones @ 2014-07-22 14:53 UTC (permalink / raw)
To: Kiran Padwal; +Cc: tj, linux-ide, linux-kernel
On Tue, 22 Jul 2014, Kiran Padwal wrote:
> Make of_device_id array const, because all OF functions handle it as const.
>
> Signed-off-by: Kiran Padwal <kiran.padwal21@gmail.com>
> ---
> drivers/ata/ahci_st.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Lee Jones <lee.jones@linaro.org>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ahci: st: Make of_device_id array const
2014-07-22 14:15 [PATCH] ahci: st: Make of_device_id array const Kiran Padwal
2014-07-22 14:53 ` Lee Jones
@ 2014-07-22 15:44 ` Tejun Heo
1 sibling, 0 replies; 3+ messages in thread
From: Tejun Heo @ 2014-07-22 15:44 UTC (permalink / raw)
To: Kiran Padwal; +Cc: lee.jones, linux-ide, linux-kernel
On Tue, Jul 22, 2014 at 07:45:43PM +0530, Kiran Padwal wrote:
> Make of_device_id array const, because all OF functions handle it as const.
>
> Signed-off-by: Kiran Padwal <kiran.padwal21@gmail.com>
Applied to libata/for-3.17.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-22 15:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-22 14:15 [PATCH] ahci: st: Make of_device_id array const Kiran Padwal
2014-07-22 14:53 ` Lee Jones
2014-07-22 15:44 ` Tejun Heo
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.