Input: constify of_device_id arrays
of_device_id is always used as const argument (See driver.of_match_table and open firmware functions). Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:

committed by
Dmitry Torokhov

parent
d1b12075ff
commit
245165de98
@@ -157,7 +157,7 @@ static const struct i2c_device_id ar1021_i2c_id[] = {
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ar1021_i2c_id);
|
||||
|
||||
static struct of_device_id ar1021_i2c_of_match[] = {
|
||||
static const struct of_device_id ar1021_i2c_of_match[] = {
|
||||
{ .compatible = "microchip,ar1021-i2c", },
|
||||
{ }
|
||||
};
|
||||
|
Reference in New Issue
Block a user