# \[PATCH\] staging: sm7xxfb: make vgamode static

- Subsystems: STAGING SUBSYSTEM, THE REST
- Maintainers: Greg Kroah-Hartman, Linus Torvalds
- List: linux-fbdev
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-fbdev/2015/02/4428860/t

## \[PATCH\] staging: sm7xxfb: make vgamode static

- From: Sudip Mukherjee \<sudipm.mukherjee@gmail.com\>
- Date: 2015-02-10 12:08:51 
- Message: https://ratatoskr.run/linux-fbdev/2015/02/4428860.md

```text
the variable vgamode is used only in this file and hence can be
safely made as static.

Signed-off-by: Sudip Mukherjee <redacted>
---
 drivers/staging/sm7xxfb/sm7xx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/sm7xxfb/sm7xx.h b/drivers/staging/sm7xxfb/sm7xx.h
index 7cc1896..c5d6253 100644
--- a/drivers/staging/sm7xxfb/sm7xx.h
+++ b/drivers/staging/sm7xxfb/sm7xx.h
@@ -119,7 +119,7 @@ struct ModeInit {
 /**********************************************************************
 			 SM712 Mode table.
  **********************************************************************/
-struct ModeInit vgamode[] = {
+static struct ModeInit vgamode[] = {
 	{
 	 /*  mode#0: 640 x 480  16Bpp  60Hz */
 	 640, 480, 16, 60,
-- 
1.8.1.2

```
