瀏覽代碼

iio: constify of_device_id array

of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Fabian Frederick 10 年之前
父節點
當前提交
7253606d38
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/iio/common/ssp_sensors/ssp_dev.c

+ 1 - 1
drivers/iio/common/ssp_sensors/ssp_dev.c

@@ -437,7 +437,7 @@ int ssp_queue_ssp_refresh_task(struct ssp_data *data, unsigned int delay)
 }
 }
 
 
 #ifdef CONFIG_OF
 #ifdef CONFIG_OF
-static struct of_device_id ssp_of_match[] = {
+static const struct of_device_id ssp_of_match[] = {
 	{
 	{
 		.compatible	= "samsung,sensorhub-rinato",
 		.compatible	= "samsung,sensorhub-rinato",
 		.data		= &ssp_rinato_info,
 		.data		= &ssp_rinato_info,