diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-12-30 11:58:43 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-07 20:03:50 -0800 |
commit | 36c7cf4de906b0953bbf0f77b99d89f666901589 (patch) | |
tree | 5c033545370335ab42b93b0c6ee95411d2c6c1aa | |
parent | be53a0d53c150dcfe033ccf0cb9a618aed40f4c6 (diff) | |
download | linux-36c7cf4de906b0953bbf0f77b99d89f666901589.tar.bz2 |
Staging: ste_rmi4: constify synaptics_rmi4_platform_data structures
This synaptics_rmi4_platform_data structure is never modified, so declare
it as const. Others are already const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c b/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c index 824d460911ec..bbec02763b39 100644 --- a/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c +++ b/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c @@ -870,7 +870,7 @@ static int synaptics_rmi4_i2c_query_device(struct synaptics_rmi4_data *pdata) * Descriptor structure. * Describes the number of i2c devices on the bus that speak RMI. */ -static struct synaptics_rmi4_platform_data synaptics_rmi4_platformdata = { +static const struct synaptics_rmi4_platform_data synaptics_rmi4_platformdata = { .irq_type = (IRQF_TRIGGER_FALLING | IRQF_SHARED), .x_flip = false, .y_flip = true, |