mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 13:11:45 +00:00
drm/i915: Use 'enabled' instead of 'enable' consistently in sprite WM code
Let's be consistent and always call our variables 'enabled' insted of the occasional 'enable'. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> [danvet: Spelling fix in the commit message, spotted by Chris.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
9198ee5b90
commit
39db4a4d7f
@ -2838,7 +2838,7 @@ sandybridge_compute_sprite_srwm(struct drm_device *dev, int plane,
|
||||
|
||||
static void sandybridge_update_sprite_wm(struct drm_device *dev, int pipe,
|
||||
uint32_t sprite_width, int pixel_size,
|
||||
bool enable, bool scaled)
|
||||
bool enabled, bool scaled)
|
||||
{
|
||||
struct drm_i915_private *dev_priv = dev->dev_private;
|
||||
int latency = dev_priv->wm.spr_latency[0] * 100; /* In unit 0.1us */
|
||||
@ -2846,7 +2846,7 @@ static void sandybridge_update_sprite_wm(struct drm_device *dev, int pipe,
|
||||
int sprite_wm, reg;
|
||||
int ret;
|
||||
|
||||
if (!enable)
|
||||
if (!enabled)
|
||||
return;
|
||||
|
||||
switch (pipe) {
|
||||
@ -2961,13 +2961,13 @@ void intel_update_watermarks(struct drm_device *dev)
|
||||
|
||||
void intel_update_sprite_watermarks(struct drm_device *dev, int pipe,
|
||||
uint32_t sprite_width, int pixel_size,
|
||||
bool enable, bool scaled)
|
||||
bool enabled, bool scaled)
|
||||
{
|
||||
struct drm_i915_private *dev_priv = dev->dev_private;
|
||||
|
||||
if (dev_priv->display.update_sprite_wm)
|
||||
dev_priv->display.update_sprite_wm(dev, pipe, sprite_width,
|
||||
pixel_size, enable, scaled);
|
||||
pixel_size, enabled, scaled);
|
||||
}
|
||||
|
||||
static struct drm_i915_gem_object *
|
||||
|
Loading…
Reference in New Issue
Block a user