Skip to content

Commit

Permalink
[PATCH] ARM: Make sa1100fb_display_dma_period() an inline function
Browse files Browse the repository at this point in the history
This function produces a warning when CPU_FREQ=n.  Since it's a very
simple calculation, make it inline instead of adding preprocessor
directives around it.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Aug 7, 2005
1 parent 0d317fb commit fc1df37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/sa1100fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ sa1100fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
* requests for the LCD controller. If we hit this, it means we're
* doing nothing but LCD DMA.
*/
static unsigned int sa1100fb_display_dma_period(struct fb_var_screeninfo *var)
static inline unsigned int sa1100fb_display_dma_period(struct fb_var_screeninfo *var)
{
/*
* Period = pixclock * bits_per_byte * bytes_per_transfer
Expand Down

0 comments on commit fc1df37

Please sign in to comment.