summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski2015-05-01 17:53:31 +0200
committerJonathan Cameron2015-05-10 21:31:46 +0200
commite682173f3753a73feb8336c8b6cdd8c6b74bdd75 (patch)
tree448302342a7a5bf246d25b0c86759c5986976ac7
parentiio: hid-sensor-accel-3d: Constify platform_device_id (diff)
downloadkernel-qcow2-linux-e682173f3753a73feb8336c8b6cdd8c6b74bdd75.tar.gz
kernel-qcow2-linux-e682173f3753a73feb8336c8b6cdd8c6b74bdd75.tar.xz
kernel-qcow2-linux-e682173f3753a73feb8336c8b6cdd8c6b74bdd75.zip
iio: adc: axp288: Constify platform_device_id
The platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/iio/adc/axp288_adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/axp288_adc.c b/drivers/iio/adc/axp288_adc.c
index 08bcfb061ca5..27197fd1517e 100644
--- a/drivers/iio/adc/axp288_adc.c
+++ b/drivers/iio/adc/axp288_adc.c
@@ -238,7 +238,7 @@ static int axp288_adc_remove(struct platform_device *pdev)
return 0;
}
-static struct platform_device_id axp288_adc_id_table[] = {
+static const struct platform_device_id axp288_adc_id_table[] = {
{ .name = "axp288_adc" },
{},
};