Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: bfin-lq035q1-fb: constify dev_pm_ops

This dev_pm_ops structure is only stored in the pm field of a
device_driver structure. This field is declared const, so
dev_pm_ops structures that have this property can be declared
as const also.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Gustavo A. R. Silva and committed by
Bartlomiej Zolnierkiewicz
2ac17ef7 0ae6ee00

+1 -1
+1 -1
drivers/video/fbdev/bfin-lq035q1-fb.c
··· 841 841 return 0; 842 842 } 843 843 844 - static struct dev_pm_ops bfin_lq035q1_dev_pm_ops = { 844 + static const struct dev_pm_ops bfin_lq035q1_dev_pm_ops = { 845 845 .suspend = bfin_lq035q1_suspend, 846 846 .resume = bfin_lq035q1_resume, 847 847 };