i2c: constify platform_device_id

The platform_device_id is not modified by these drivers and core uses it
as const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
Krzysztof Kozlowski
2015-05-02 00:54:25 +09:00
committed by Wolfram Sang
parent 096ea30c91
commit e9a02a3d89
4 changed files with 4 additions and 4 deletions

View File

@@ -713,7 +713,7 @@ static int rcar_i2c_remove(struct platform_device *pdev)
return 0;
}
static struct platform_device_id rcar_i2c_id_table[] = {
static const struct platform_device_id rcar_i2c_id_table[] = {
{ "i2c-rcar", I2C_RCAR_GEN1 },
{ "i2c-rcar_gen1", I2C_RCAR_GEN1 },
{ "i2c-rcar_gen2", I2C_RCAR_GEN2 },