aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ast/ast_mode.c
diff options
context:
space:
mode:
authorRashika <rashika.kheria@gmail.com>2014-01-06 09:32:39 -0500
committerDave Airlie <airlied@redhat.com>2014-01-13 21:59:16 -0500
commit7f5ccd443e7e2a10df210b16850497b166629711 (patch)
tree8263662eb6a0650e403f04f7ce8bdcc715e5d489 /drivers/gpu/drm/ast/ast_mode.c
parentf6109803f24131efd23fc0f2a4aa5eef5d6c1197 (diff)
drivers: gpu: Mark functions as static in ast_mode.c
Mark functions ast_set_sync_reg(), ast_set_dac_reg(), ast_set_start_address_crt1(), ast_crtc_init(), ast_encoder_init(), ast_connector_init(), ast_cursor_init(), ast_cursor_fini(), ast_show_cursor() and ast_hide_cursor() as static in drm/ast/ast_mode.c because they are not used outside this file. This eliminates the following warning in drm/ast/ast_mode.c: drivers/gpu/drm/ast/ast_mode.c:407:6: warning: no previous prototype for ‘ast_set_sync_reg’ [-Wmissing-prototypes] drivers/gpu/drm/ast/ast_mode.c:418:6: warning: no previous prototype for ‘ast_set_dac_reg’ [-Wmissing-prototypes] drivers/gpu/drm/ast/ast_mode.c:430:6: warning: no previous prototype for ‘ast_set_start_address_crt1’ [-Wmissing-prototypes] drivers/gpu/drm/ast/ast_mode.c:626:5: warning: no previous prototype for ‘ast_crtc_init’ [-Wmissing-prototypes] drivers/gpu/drm/ast/ast_mode.c:713:5: warning: no previous prototype for ‘ast_encoder_init’ [-Wmissing-prototypes] drivers/gpu/drm/ast/ast_mode.c:780:5: warning: no previous prototype for ‘ast_connector_init’ [-Wmissing-prototypes] drivers/gpu/drm/ast/ast_mode.c:813:5: warning: no previous prototype for ‘ast_cursor_init’ [-Wmissing-prototypes] drivers/gpu/drm/ast/ast_mode.c:850:6: warning: no previous prototype for ‘ast_cursor_fini’ [-Wmissing-prototypes] drivers/gpu/drm/ast/ast_mode.c:968:6: warning: no previous prototype for ‘ast_show_cursor’ [-Wmissing-prototypes] drivers/gpu/drm/ast/ast_mode.c:979:6: warning: no previous prototype for ‘ast_hide_cursor’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/ast/ast_mode.c')
-rw-r--r--drivers/gpu/drm/ast/ast_mode.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index 7fc9f7272b56..cca063b11083 100644
--- a/drivers/gpu/drm/ast/ast_mode.c
+++ b/drivers/gpu/drm/ast/ast_mode.c
@@ -404,7 +404,7 @@ static void ast_set_ext_reg(struct drm_crtc *crtc, struct drm_display_mode *mode
404 } 404 }
405} 405}
406 406
407void ast_set_sync_reg(struct drm_device *dev, struct drm_display_mode *mode, 407static void ast_set_sync_reg(struct drm_device *dev, struct drm_display_mode *mode,
408 struct ast_vbios_mode_info *vbios_mode) 408 struct ast_vbios_mode_info *vbios_mode)
409{ 409{
410 struct ast_private *ast = dev->dev_private; 410 struct ast_private *ast = dev->dev_private;
@@ -415,7 +415,7 @@ void ast_set_sync_reg(struct drm_device *dev, struct drm_display_mode *mode,
415 ast_io_write8(ast, AST_IO_MISC_PORT_WRITE, jreg); 415 ast_io_write8(ast, AST_IO_MISC_PORT_WRITE, jreg);
416} 416}
417 417
418bool ast_set_dac_reg(struct drm_crtc *crtc, struct drm_display_mode *mode, 418static bool ast_set_dac_reg(struct drm_crtc *crtc, struct drm_display_mode *mode,
419 struct ast_vbios_mode_info *vbios_mode) 419 struct ast_vbios_mode_info *vbios_mode)
420{ 420{
421 switch (crtc->fb->bits_per_pixel) { 421 switch (crtc->fb->bits_per_pixel) {
@@ -427,7 +427,7 @@ bool ast_set_dac_reg(struct drm_crtc *crtc, struct drm_display_mode *mode,
427 return true; 427 return true;
428} 428}
429 429
430void ast_set_start_address_crt1(struct drm_crtc *crtc, unsigned offset) 430static void ast_set_start_address_crt1(struct drm_crtc *crtc, unsigned offset)
431{ 431{
432 struct ast_private *ast = crtc->dev->dev_private; 432 struct ast_private *ast = crtc->dev->dev_private;
433 u32 addr; 433 u32 addr;
@@ -623,7 +623,7 @@ static const struct drm_crtc_funcs ast_crtc_funcs = {
623 .destroy = ast_crtc_destroy, 623 .destroy = ast_crtc_destroy,
624}; 624};
625 625
626int ast_crtc_init(struct drm_device *dev) 626static int ast_crtc_init(struct drm_device *dev)
627{ 627{
628 struct ast_crtc *crtc; 628 struct ast_crtc *crtc;
629 int i; 629 int i;
@@ -710,7 +710,7 @@ static const struct drm_encoder_helper_funcs ast_enc_helper_funcs = {
710 .mode_set = ast_encoder_mode_set, 710 .mode_set = ast_encoder_mode_set,
711}; 711};
712 712
713int ast_encoder_init(struct drm_device *dev) 713static int ast_encoder_init(struct drm_device *dev)
714{ 714{
715 struct ast_encoder *ast_encoder; 715 struct ast_encoder *ast_encoder;
716 716
@@ -777,7 +777,7 @@ static const struct drm_connector_funcs ast_connector_funcs = {
777 .destroy = ast_connector_destroy, 777 .destroy = ast_connector_destroy,
778}; 778};
779 779
780int ast_connector_init(struct drm_device *dev) 780static int ast_connector_init(struct drm_device *dev)
781{ 781{
782 struct ast_connector *ast_connector; 782 struct ast_connector *ast_connector;
783 struct drm_connector *connector; 783 struct drm_connector *connector;
@@ -810,7 +810,7 @@ int ast_connector_init(struct drm_device *dev)
810} 810}
811 811
812/* allocate cursor cache and pin at start of VRAM */ 812/* allocate cursor cache and pin at start of VRAM */
813int ast_cursor_init(struct drm_device *dev) 813static int ast_cursor_init(struct drm_device *dev)
814{ 814{
815 struct ast_private *ast = dev->dev_private; 815 struct ast_private *ast = dev->dev_private;
816 int size; 816 int size;
@@ -847,7 +847,7 @@ fail:
847 return ret; 847 return ret;
848} 848}
849 849
850void ast_cursor_fini(struct drm_device *dev) 850static void ast_cursor_fini(struct drm_device *dev)
851{ 851{
852 struct ast_private *ast = dev->dev_private; 852 struct ast_private *ast = dev->dev_private;
853 ttm_bo_kunmap(&ast->cache_kmap); 853 ttm_bo_kunmap(&ast->cache_kmap);
@@ -965,7 +965,7 @@ static void ast_i2c_destroy(struct ast_i2c_chan *i2c)
965 kfree(i2c); 965 kfree(i2c);
966} 966}
967 967
968void ast_show_cursor(struct drm_crtc *crtc) 968static void ast_show_cursor(struct drm_crtc *crtc)
969{ 969{
970 struct ast_private *ast = crtc->dev->dev_private; 970 struct ast_private *ast = crtc->dev->dev_private;
971 u8 jreg; 971 u8 jreg;
@@ -976,7 +976,7 @@ void ast_show_cursor(struct drm_crtc *crtc)
976 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xcb, 0xfc, jreg); 976 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xcb, 0xfc, jreg);
977} 977}
978 978
979void ast_hide_cursor(struct drm_crtc *crtc) 979static void ast_hide_cursor(struct drm_crtc *crtc)
980{ 980{
981 struct ast_private *ast = crtc->dev->dev_private; 981 struct ast_private *ast = crtc->dev->dev_private;
982 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xcb, 0xfc, 0x00); 982 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xcb, 0xfc, 0x00);