diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-12-08 05:40:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:29:05 -0500 |
commit | fd717689f46436fc212882ddc6e02a20be920634 (patch) | |
tree | 4b4a7bd76f23716fbd14886cfdfb9aab7033b2f8 /drivers/video/riva/riva_hw.h | |
parent | 945f0ee257b4f91498b4061dc89b8a68c423ea6f (diff) |
[PATCH] atyfb, rivafb: minor fixes
aty128fb: return an error in the unlikely event that we cannot calculate
some key PLL info
rivafb:
* call CalcStateExt() directly, rather than via function pointers, since
CalcStateExt() is the only value ever assigned to ->CalcStateExt().
* propagate error return back from CalcVClock() through callers
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/riva/riva_hw.h')
-rw-r--r-- | drivers/video/riva/riva_hw.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/video/riva/riva_hw.h b/drivers/video/riva/riva_hw.h index a1e71a626df2..c2769f73e0b2 100644 --- a/drivers/video/riva/riva_hw.h +++ b/drivers/video/riva/riva_hw.h | |||
@@ -463,7 +463,6 @@ typedef struct _riva_hw_inst | |||
463 | * Common chip functions. | 463 | * Common chip functions. |
464 | */ | 464 | */ |
465 | int (*Busy)(struct _riva_hw_inst *); | 465 | int (*Busy)(struct _riva_hw_inst *); |
466 | void (*CalcStateExt)(struct _riva_hw_inst *,struct _riva_hw_state *,int,int,int,int,int); | ||
467 | void (*LoadStateExt)(struct _riva_hw_inst *,struct _riva_hw_state *); | 466 | void (*LoadStateExt)(struct _riva_hw_inst *,struct _riva_hw_state *); |
468 | void (*UnloadStateExt)(struct _riva_hw_inst *,struct _riva_hw_state *); | 467 | void (*UnloadStateExt)(struct _riva_hw_inst *,struct _riva_hw_state *); |
469 | void (*SetStartAddress)(struct _riva_hw_inst *,U032); | 468 | void (*SetStartAddress)(struct _riva_hw_inst *,U032); |
@@ -528,6 +527,22 @@ typedef struct _riva_hw_state | |||
528 | U032 pitch2; | 527 | U032 pitch2; |
529 | U032 pitch3; | 528 | U032 pitch3; |
530 | } RIVA_HW_STATE; | 529 | } RIVA_HW_STATE; |
530 | |||
531 | /* | ||
532 | * function prototypes | ||
533 | */ | ||
534 | |||
535 | extern int CalcStateExt | ||
536 | ( | ||
537 | RIVA_HW_INST *chip, | ||
538 | RIVA_HW_STATE *state, | ||
539 | int bpp, | ||
540 | int width, | ||
541 | int hDisplaySize, | ||
542 | int height, | ||
543 | int dotClock | ||
544 | ); | ||
545 | |||
531 | /* | 546 | /* |
532 | * External routines. | 547 | * External routines. |
533 | */ | 548 | */ |