]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
staging: iio: ad7606_par: Constify platform_device_id
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Fri, 1 May 2015 15:43:22 +0000 (00:43 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 May 2015 07:24:15 +0000 (09:24 +0200)
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>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/adc/ad7606_par.c

index 9e24b4d4455f2ed2ed49c485377c27e3fde20c85..1d48ae381d16c150ac3f0edc6eca32882f54477a 100644 (file)
@@ -119,7 +119,7 @@ static const struct dev_pm_ops ad7606_pm_ops = {
 #define AD7606_PAR_PM_OPS NULL
 #endif  /* CONFIG_PM */
 
-static struct platform_device_id ad7606_driver_ids[] = {
+static const struct platform_device_id ad7606_driver_ids[] = {
        {
                .name           = "ad7606-8",
                .driver_data    = ID_AD7606_8,