diff options
author | Eric Anholt <eric@anholt.net> | 2010-03-25 14:11:14 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-03-25 15:27:32 -0400 |
commit | 21d40d37eca86872f2bf0af995809ebdef25c9d9 (patch) | |
tree | b9626f936392f223fa7d001de38213a177bfe7fd /drivers/gpu/drm/i915/intel_modes.c | |
parent | 5e64499f3d39c633de49320e399479642c2b1743 (diff) |
drm/i915: Rename intel_output to intel_encoder.
The intel_output naming is inherited from the UMS code, which had a
structure of screen -> CRTC -> output. The DRM code has an additional
notion of encoder/connector, so the structure is screen -> CRTC ->
encoder -> connector. This is a useful structure for SDVO encoders
which can support multiple connectors (each of which requires
different programming in the one encoder and could be connected to
different CRTCs), or for DVI-I, where multiple encoders feed into the
connector for whether it's used for digital or analog. Most of our
code is encoder-related, so transition it to talking about encoders
before we start trying to distinguish connectors.
This patch is produced by sed s/intel_output/intel_encoder/ over the
driver.
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_modes.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_modes.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/gpu/drm/i915/intel_modes.c b/drivers/gpu/drm/i915/intel_modes.c index 67e2f4632a24..3111a1c2731f 100644 --- a/drivers/gpu/drm/i915/intel_modes.c +++ b/drivers/gpu/drm/i915/intel_modes.c | |||
@@ -33,7 +33,7 @@ | |||
33 | * intel_ddc_probe | 33 | * intel_ddc_probe |
34 | * | 34 | * |
35 | */ | 35 | */ |
36 | bool intel_ddc_probe(struct intel_output *intel_output) | 36 | bool intel_ddc_probe(struct intel_encoder *intel_encoder) |
37 | { | 37 | { |
38 | u8 out_buf[] = { 0x0, 0x0}; | 38 | u8 out_buf[] = { 0x0, 0x0}; |
39 | u8 buf[2]; | 39 | u8 buf[2]; |
@@ -53,9 +53,9 @@ bool intel_ddc_probe(struct intel_output *intel_output) | |||
53 | } | 53 | } |
54 | }; | 54 | }; |
55 | 55 | ||
56 | intel_i2c_quirk_set(intel_output->base.dev, true); | 56 | intel_i2c_quirk_set(intel_encoder->base.dev, true); |
57 | ret = i2c_transfer(intel_output->ddc_bus, msgs, 2); | 57 | ret = i2c_transfer(intel_encoder->ddc_bus, msgs, 2); |
58 | intel_i2c_quirk_set(intel_output->base.dev, false); | 58 | intel_i2c_quirk_set(intel_encoder->base.dev, false); |
59 | if (ret == 2) | 59 | if (ret == 2) |
60 | return true; | 60 | return true; |
61 | 61 | ||
@@ -68,19 +68,19 @@ bool intel_ddc_probe(struct intel_output *intel_output) | |||
68 | * | 68 | * |
69 | * Fetch the EDID information from @connector using the DDC bus. | 69 | * Fetch the EDID information from @connector using the DDC bus. |
70 | */ | 70 | */ |
71 | int intel_ddc_get_modes(struct intel_output *intel_output) | 71 | int intel_ddc_get_modes(struct intel_encoder *intel_encoder) |
72 | { | 72 | { |
73 | struct edid *edid; | 73 | struct edid *edid; |
74 | int ret = 0; | 74 | int ret = 0; |
75 | 75 | ||
76 | intel_i2c_quirk_set(intel_output->base.dev, true); | 76 | intel_i2c_quirk_set(intel_encoder->base.dev, true); |
77 | edid = drm_get_edid(&intel_output->base, intel_output->ddc_bus); | 77 | edid = drm_get_edid(&intel_encoder->base, intel_encoder->ddc_bus); |
78 | intel_i2c_quirk_set(intel_output->base.dev, false); | 78 | intel_i2c_quirk_set(intel_encoder->base.dev, false); |
79 | if (edid) { | 79 | if (edid) { |
80 | drm_mode_connector_update_edid_property(&intel_output->base, | 80 | drm_mode_connector_update_edid_property(&intel_encoder->base, |
81 | edid); | 81 | edid); |
82 | ret = drm_add_edid_modes(&intel_output->base, edid); | 82 | ret = drm_add_edid_modes(&intel_encoder->base, edid); |
83 | intel_output->base.display_info.raw_edid = NULL; | 83 | intel_encoder->base.display_info.raw_edid = NULL; |
84 | kfree(edid); | 84 | kfree(edid); |
85 | } | 85 | } |
86 | 86 | ||