* [PATCH] tty: serial: msm: Make of_device_id array const
@ 2014-07-23 10:26 Kiran Padwal
2014-07-23 23:26 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Kiran Padwal @ 2014-07-23 10:26 UTC (permalink / raw)
To: davidb, gregkh
Cc: dwalker, bryanh, jslaby, linux-serial, linux-kernel,
linux-arm-msm, kiran.padwal
Make of_device_id array const, because all OF functions handle it as const.
Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com>
---
drivers/tty/serial/msm_serial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c
index 6baf2ad..f4a85b8 100644
--- a/drivers/tty/serial/msm_serial.c
+++ b/drivers/tty/serial/msm_serial.c
@@ -1073,7 +1073,7 @@ static int msm_serial_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id msm_match_table[] = {
+static const struct of_device_id msm_match_table[] = {
{ .compatible = "qcom,msm-uart" },
{ .compatible = "qcom,msm-uartdm" },
{}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tty: serial: msm: Make of_device_id array const
2014-07-23 10:26 [PATCH] tty: serial: msm: Make of_device_id array const Kiran Padwal
@ 2014-07-23 23:26 ` Stephen Boyd
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2014-07-23 23:26 UTC (permalink / raw)
To: Kiran Padwal
Cc: davidb, gregkh, dwalker, bryanh, jslaby, linux-serial,
linux-kernel, linux-arm-msm, kiran.padwal
On 07/23/14 03:26, Kiran Padwal wrote:
> Make of_device_id array const, because all OF functions handle it as const.
>
> Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com>
> ---
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-23 23:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-23 10:26 [PATCH] tty: serial: msm: Make of_device_id array const Kiran Padwal
2014-07-23 23:26 ` Stephen Boyd
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).