[Intel-gfx] [PATCH 04/22] drm/i915: Make HAS_DDI and HAS_PCH_LPT_LP only take dev_priv

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Thu Oct 6 07:39:20 UTC 2016


On 05/10/2016 18:16, Ville Syrjälä wrote:
> On Wed, Oct 05, 2016 at 01:33:31PM +0100, Tvrtko Ursulin wrote:
>> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>>
>> This saves 3248 bytes of .rodata strings.
>>
>> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>> ---
>>   drivers/gpu/drm/i915/i915_drv.h       |  8 +++---
>>   drivers/gpu/drm/i915/intel_crt.c      | 10 +++----
>>   drivers/gpu/drm/i915/intel_display.c  | 49 ++++++++++++++++++-----------------
>>   drivers/gpu/drm/i915/intel_dp.c       | 16 ++++++------
>>   drivers/gpu/drm/i915/intel_dpll_mgr.c |  4 +--
>>   drivers/gpu/drm/i915/intel_hdmi.c     | 10 +++----
>>   drivers/gpu/drm/i915/intel_pm.c       |  4 +--
>>   drivers/gpu/drm/i915/intel_psr.c      |  8 +++---
>>   8 files changed, 56 insertions(+), 53 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
>> index 4613f031d127..61e0cf7374ed 100644
>> --- a/drivers/gpu/drm/i915/i915_drv.h
>> +++ b/drivers/gpu/drm/i915/i915_drv.h
>> @@ -2817,7 +2817,7 @@ struct drm_i915_cmd_table {
>>   
>>   #define HAS_DP_MST(dev)	(INTEL_INFO(dev)->has_dp_mst)
>>   
>> -#define HAS_DDI(dev)		(INTEL_INFO(dev)->has_ddi)
>> +#define HAS_DDI(dev_priv)	(dev_priv->info.has_ddi)
> ((dev_priv)->...)

Yes I've also spotted that myself. Will fix them all locally but won't 
be sending them out until/if there is some consensus.

Regards,

Tvrtko



More information about the Intel-gfx mailing list