From: Thierry Reding Date: Tue, 1 Apr 2014 12:06:43 +0000 (+0200) Subject: pwm: pxa: Constify OF match table X-Git-Tag: firefly_0821_release~176^2~4127^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2ae69a460413615c82381b240df3800a909100d3;p=firefly-linux-kernel-4.4.55.git pwm: pxa: Constify OF match table The table is never modified and all OF functions that use it take a const struct of_device_id *. Signed-off-by: Thierry Reding --- diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index 9d702d5cbd55..cd356d870244 100644 --- a/drivers/pwm/pwm-pxa.c +++ b/drivers/pwm/pwm-pxa.c @@ -132,7 +132,7 @@ static struct pwm_ops pxa_pwm_ops = { * code that this is a single channel pxa25x-pwm. Currently all devices are * supported identically. */ -static struct of_device_id pwm_of_match[] = { +static const struct of_device_id pwm_of_match[] = { { .compatible = "marvell,pxa250-pwm", .data = &pwm_id_table[0]}, { .compatible = "marvell,pxa270-pwm", .data = &pwm_id_table[0]}, { .compatible = "marvell,pxa168-pwm", .data = &pwm_id_table[0]},