Skip to content

Commit

Permalink
hwmon: (g762) Make of_device_id array const
Browse files Browse the repository at this point in the history
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: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Jingoo Han authored and Guenter Roeck committed May 21, 2014
1 parent 86b89d7 commit adaa50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/g762.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ static int do_set_fan_startv(struct device *dev, unsigned long val)
*/

#ifdef CONFIG_OF
static struct of_device_id g762_dt_match[] = {
static const struct of_device_id g762_dt_match[] = {
{ .compatible = "gmt,g762" },
{ .compatible = "gmt,g763" },
{ },
Expand Down

0 comments on commit adaa50b

Please sign in to comment.