]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mfd: tps6586x: Make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 08:23:15 +0000 (17:23 +0900)
committerLee Jones <lee.jones@linaro.org>
Fri, 23 May 2014 09:34:12 +0000 (10:34 +0100)
Make of_device_id array const, because all OF functions
handle it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps6586x.c

index bbd54414a75da5f99edbc70375c717c4ecd41267..ccd70821346616948bad0df203b7fbfd185d4741 100644 (file)
@@ -444,7 +444,7 @@ static struct tps6586x_platform_data *tps6586x_parse_dt(struct i2c_client *clien
        return pdata;
 }
 
-static struct of_device_id tps6586x_of_match[] = {
+static const struct of_device_id tps6586x_of_match[] = {
        { .compatible = "ti,tps6586x", },
        { },
 };