Skip to content

Commit

Permalink
iio: constify of_device_id array
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabian Frederick authored and Jonathan Cameron committed Mar 28, 2015
1 parent 7cf78db commit 7253606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/common/ssp_sensors/ssp_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ int ssp_queue_ssp_refresh_task(struct ssp_data *data, unsigned int delay)
}

#ifdef CONFIG_OF
static struct of_device_id ssp_of_match[] = {
static const struct of_device_id ssp_of_match[] = {
{
.compatible = "samsung,sensorhub-rinato",
.data = &ssp_rinato_info,
Expand Down

0 comments on commit 7253606

Please sign in to comment.