[BL training-materials-updates] of_device_id should be declared as const

Michael Opdenacker michael.opdenacker at bootlin.com
Sat Nov 24 19:02:47 CET 2018


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=a0864a7508bbd349419faa6658a2f1caa603097c

>---------------------------------------------------------------

commit a0864a7508bbd349419faa6658a2f1caa603097c
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Sat Nov 24 19:02:47 2018 +0100

    of_device_id should be declared as const
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

a0864a7508bbd349419faa6658a2f1caa603097c
 lab-data/buildroot/buildroot-rootfs/linux/0001-Add-nunchuk-driver.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lab-data/buildroot/buildroot-rootfs/linux/0001-Add-nunchuk-driver.patch b/lab-data/buildroot/buildroot-rootfs/linux/0001-Add-nunchuk-driver.patch
index 4a106ac..07d9e36 100644
--- a/lab-data/buildroot/buildroot-rootfs/linux/0001-Add-nunchuk-driver.patch
+++ b/lab-data/buildroot/buildroot-rootfs/linux/0001-Add-nunchuk-driver.patch
@@ -451,7 +451,7 @@ index 0000000..ea7a1e0
 +MODULE_DEVICE_TABLE(i2c, wiichuck_id);
 +
 +#ifdef CONFIG_OF
-+static struct of_device_id wiichuck_match_table[] __initdata = {
++static struct const of_device_id wiichuck_match_table[] __initdata = {
 +	{ .compatible = "nintendo,wiimote-extension", },
 +	{ }
 +};




More information about the training-materials-updates mailing list