summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-04-07 19:25:25 -0700
committerJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-04-07 19:25:25 -0700
commit2430d0c3157ef20a3319a4f93dc44b28d0189868 (patch)
tree7c6a60244b9474ab270cb6d65626d8f4d2ef2243 /linux-core
parent491ed9e4c27da6b1b5a6a6921039a7bf3a98c290 (diff)
just codingstyle cleanups
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/intel_crt.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/linux-core/intel_crt.c b/linux-core/intel_crt.c
index 55d987a6..e62aa8d3 100644
--- a/linux-core/intel_crt.c
+++ b/linux-core/intel_crt.c
@@ -109,10 +109,10 @@ static void intel_crt_mode_set(struct drm_output *output,
* Disable separate mode multiplier used when cloning SDVO to CRT
* XXX this needs to be adjusted when we really are cloning
*/
- if (IS_I965G(dev))
- {
+ if (IS_I965G(dev)) {
dpll_md = I915_READ(dpll_md_reg);
- I915_WRITE(dpll_md_reg, dpll_md & ~DPLL_MD_UDI_MULTIPLIER_MASK);
+ I915_WRITE(dpll_md_reg,
+ dpll_md & ~DPLL_MD_UDI_MULTIPLIER_MASK);
}
adpa = 0;
@@ -143,8 +143,8 @@ static bool intel_crt_detect_hotplug(struct drm_output *output)
// struct intel_output *intel_output = output->driver_private;
drm_i915_private_t *dev_priv = dev->dev_private;
u32 temp;
- const int timeout_ms = 1000;
- int starttime, curtime;
+// const int timeout_ms = 1000;
+// int starttime, curtime;
temp = I915_READ(PORT_HOTPLUG_EN);
@@ -180,7 +180,6 @@ static bool intel_crt_detect_ddc(struct drm_output *output)
static enum drm_output_status intel_crt_detect(struct drm_output *output)
{
drm_device_t *dev = output->dev;
- drm_i915_private_t *dev_priv = dev->dev_private;
if (IS_I945G(dev)| IS_I945GM(dev) || IS_I965G(dev)) {
if (intel_crt_detect_hotplug(output))
@@ -227,9 +226,8 @@ void intel_crt_init(drm_device_t *dev)
{
struct drm_output *output;
struct intel_output *intel_output;
- int modes;
- output = drm_output_create (dev, &intel_crt_output_funcs, "VGA");
+ output = drm_output_create(dev, &intel_crt_output_funcs, "VGA");
intel_output = kmalloc(sizeof(struct intel_output), GFP_KERNEL);
if (!intel_output) {