summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_panel.c
diff options
context:
space:
mode:
authorU. Artie Eoff2014-09-30 00:49:33 +0200
committerDaniel Vetter2014-10-06 16:49:27 +0200
commit2e5416252af5239ddcd92bc858a494c1ca842778 (patch)
tree13faee4cc18e9039b42c9d5ef439abff78b3b4f6 /drivers/gpu/drm/i915/intel_panel.c
parentdrm/i915: intel_backlight scale() math WA (diff)
downloadkernel-qcow2-linux-2e5416252af5239ddcd92bc858a494c1ca842778.tar.gz
kernel-qcow2-linux-2e5416252af5239ddcd92bc858a494c1ca842778.tar.xz
kernel-qcow2-linux-2e5416252af5239ddcd92bc858a494c1ca842778.zip
drm/i915: Move DIV_ROUND_CLOSEST_ULL macro to header
Move the duplicated DIV_ROUND_CLOSEST_ULL macro into the intel_drv.h header file so that it can be shared between intel_display.c and intel_panel.c. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-By: Joe Konno <joe.konno@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_panel.c')
-rw-r--r--drivers/gpu/drm/i915/intel_panel.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
index 97ff71f40dd3..0e018cb49147 100644
--- a/drivers/gpu/drm/i915/intel_panel.c
+++ b/drivers/gpu/drm/i915/intel_panel.c
@@ -398,9 +398,6 @@ intel_panel_detect(struct drm_device *dev)
}
}
-#define DIV_ROUND_CLOSEST_ULL(ll, d) \
-({ unsigned long long _tmp = (ll)+(d)/2; do_div(_tmp, d); _tmp; })
-
/**
* scale - scale values from one range to another
*