mbox series

[0/5] display: prefer 3-letter acronym

Message ID 20191218014208.7916-1-lucas.demarchi@intel.com (mailing list archive)
Headers show
Series display: prefer 3-letter acronym | expand

Message

Lucas De Marchi Dec. 18, 2019, 1:42 a.m. UTC
This bothered me for a while so I decided to give it a try: let's
normalize on using the platform acronym for function prefixes.

This does the conversion for some platforms. There are others missing,
but I'm sending this early for the case the idea is shot down.

Lucas De Marchi (5):
  drm/i915/display: prefer 3-letter acronym for haswell
  drm/i915/display: prefer 3-letter acronym for skylake
  drm/i915/display: prefer 3-letter acronym for cannonlake
  drm/i915/display: prefer 3-letter acronym for icelake
  drm/i915/display: prefer 3-letter acronym for ironlake

 drivers/gpu/drm/i915/display/intel_crt.c      |   6 +-
 drivers/gpu/drm/i915/display/intel_ddi.c      |   4 +-
 drivers/gpu/drm/i915/display/intel_display.c  | 278 +++++++++---------
 drivers/gpu/drm/i915/display/intel_display.h  |   2 +-
 drivers/gpu/drm/i915/display/intel_dp.c       |  34 +--
 .../drm/i915/display/intel_fifo_underrun.c    |   6 +-
 6 files changed, 163 insertions(+), 167 deletions(-)

Comments

Jani Nikula Dec. 18, 2019, 6:07 a.m. UTC | #1
On Tue, 17 Dec 2019, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
> This bothered me for a while so I decided to give it a try: let's
> normalize on using the platform acronym for function prefixes.

The mixed use has always bothered me too.

Acked-by: Jani Nikula <jani.nikula@intel.com>

(Up next, IS_BROADWELL vs. IS_BDW_ULT etc... ;)


>
> This does the conversion for some platforms. There are others missing,
> but I'm sending this early for the case the idea is shot down.
>
> Lucas De Marchi (5):
>   drm/i915/display: prefer 3-letter acronym for haswell
>   drm/i915/display: prefer 3-letter acronym for skylake
>   drm/i915/display: prefer 3-letter acronym for cannonlake
>   drm/i915/display: prefer 3-letter acronym for icelake
>   drm/i915/display: prefer 3-letter acronym for ironlake
>
>  drivers/gpu/drm/i915/display/intel_crt.c      |   6 +-
>  drivers/gpu/drm/i915/display/intel_ddi.c      |   4 +-
>  drivers/gpu/drm/i915/display/intel_display.c  | 278 +++++++++---------
>  drivers/gpu/drm/i915/display/intel_display.h  |   2 +-
>  drivers/gpu/drm/i915/display/intel_dp.c       |  34 +--
>  .../drm/i915/display/intel_fifo_underrun.c    |   6 +-
>  6 files changed, 163 insertions(+), 167 deletions(-)
Lucas De Marchi Dec. 19, 2019, 12:27 a.m. UTC | #2
On Wed, Dec 18, 2019 at 08:07:55AM +0200, Jani Nikula wrote:
>On Tue, 17 Dec 2019, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
>> This bothered me for a while so I decided to give it a try: let's
>> normalize on using the platform acronym for function prefixes.
>
>The mixed use has always bothered me too.
>
>Acked-by: Jani Nikula <jani.nikula@intel.com>
>
>(Up next, IS_BROADWELL vs. IS_BDW_ULT etc... ;)

actually next are the functions using <platform>_ prefix. I will leave
the IS_* macros for later or bundle them in the respective commits (not
that I didn't change IS_ICELAKE, IS_TIGERLAKE, etc.  Maybe it's a good
idea to just bundle them in next iteration.

thanks
Lucas De Marchi


>
>
>>
>> This does the conversion for some platforms. There are others missing,
>> but I'm sending this early for the case the idea is shot down.
>>
>> Lucas De Marchi (5):
>>   drm/i915/display: prefer 3-letter acronym for haswell
>>   drm/i915/display: prefer 3-letter acronym for skylake
>>   drm/i915/display: prefer 3-letter acronym for cannonlake
>>   drm/i915/display: prefer 3-letter acronym for icelake
>>   drm/i915/display: prefer 3-letter acronym for ironlake
>>
>>  drivers/gpu/drm/i915/display/intel_crt.c      |   6 +-
>>  drivers/gpu/drm/i915/display/intel_ddi.c      |   4 +-
>>  drivers/gpu/drm/i915/display/intel_display.c  | 278 +++++++++---------
>>  drivers/gpu/drm/i915/display/intel_display.h  |   2 +-
>>  drivers/gpu/drm/i915/display/intel_dp.c       |  34 +--
>>  .../drm/i915/display/intel_fifo_underrun.c    |   6 +-
>>  6 files changed, 163 insertions(+), 167 deletions(-)
>
>-- 
>Jani Nikula, Intel Open Source Graphics Center
Lucas De Marchi Dec. 19, 2019, 12:36 a.m. UTC | #3
On Wed, Dec 18, 2019 at 04:27:30PM -0800, Lucas De Marchi wrote:
>On Wed, Dec 18, 2019 at 08:07:55AM +0200, Jani Nikula wrote:
>>On Tue, 17 Dec 2019, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
>>>This bothered me for a while so I decided to give it a try: let's
>>>normalize on using the platform acronym for function prefixes.
>>
>>The mixed use has always bothered me too.
>>
>>Acked-by: Jani Nikula <jani.nikula@intel.com>
>>
>>(Up next, IS_BROADWELL vs. IS_BDW_ULT etc... ;)
>
>actually next are the functions using <platform>_ prefix. I will leave
>the IS_* macros for later or bundle them in the respective commits (not
>that I didn't change IS_ICELAKE, IS_TIGERLAKE, etc.  Maybe it's a good
>idea to just bundle them in next iteration.
>

also I was concentrating only on display/. If we are to change all the
IS_* macros this has to be done in the entire driver.  Do you think it
belongs in the same commit? It will be pretty intrusive.

Lucas De Marchi

>thanks
>Lucas De Marchi
>
>
>>
>>
>>>
>>>This does the conversion for some platforms. There are others missing,
>>>but I'm sending this early for the case the idea is shot down.
>>>
>>>Lucas De Marchi (5):
>>>  drm/i915/display: prefer 3-letter acronym for haswell
>>>  drm/i915/display: prefer 3-letter acronym for skylake
>>>  drm/i915/display: prefer 3-letter acronym for cannonlake
>>>  drm/i915/display: prefer 3-letter acronym for icelake
>>>  drm/i915/display: prefer 3-letter acronym for ironlake
>>>
>>> drivers/gpu/drm/i915/display/intel_crt.c      |   6 +-
>>> drivers/gpu/drm/i915/display/intel_ddi.c      |   4 +-
>>> drivers/gpu/drm/i915/display/intel_display.c  | 278 +++++++++---------
>>> drivers/gpu/drm/i915/display/intel_display.h  |   2 +-
>>> drivers/gpu/drm/i915/display/intel_dp.c       |  34 +--
>>> .../drm/i915/display/intel_fifo_underrun.c    |   6 +-
>>> 6 files changed, 163 insertions(+), 167 deletions(-)
>>
>>-- 
>>Jani Nikula, Intel Open Source Graphics Center
Jani Nikula Dec. 19, 2019, 8:25 a.m. UTC | #4
On Wed, 18 Dec 2019, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
> On Wed, Dec 18, 2019 at 04:27:30PM -0800, Lucas De Marchi wrote:
>>On Wed, Dec 18, 2019 at 08:07:55AM +0200, Jani Nikula wrote:
>>>On Tue, 17 Dec 2019, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
>>>>This bothered me for a while so I decided to give it a try: let's
>>>>normalize on using the platform acronym for function prefixes.
>>>
>>>The mixed use has always bothered me too.
>>>
>>>Acked-by: Jani Nikula <jani.nikula@intel.com>
>>>
>>>(Up next, IS_BROADWELL vs. IS_BDW_ULT etc... ;)
>>
>>actually next are the functions using <platform>_ prefix. I will leave
>>the IS_* macros for later or bundle them in the respective commits (not
>>that I didn't change IS_ICELAKE, IS_TIGERLAKE, etc.  Maybe it's a good
>>idea to just bundle them in next iteration.
>>
>
> also I was concentrating only on display/. If we are to change all the
> IS_* macros this has to be done in the entire driver.  Do you think it
> belongs in the same commit? It will be pretty intrusive.

Maybe just leave the IS_* later for now? Because it's going to be one
big ugly commit, or you have to add the TLA versions on the side and
migrate gradually. Either way it's pretty painful I think...

BR,
Jani.


>
> Lucas De Marchi
>
>>thanks
>>Lucas De Marchi
>>
>>
>>>
>>>
>>>>
>>>>This does the conversion for some platforms. There are others missing,
>>>>but I'm sending this early for the case the idea is shot down.
>>>>
>>>>Lucas De Marchi (5):
>>>>  drm/i915/display: prefer 3-letter acronym for haswell
>>>>  drm/i915/display: prefer 3-letter acronym for skylake
>>>>  drm/i915/display: prefer 3-letter acronym for cannonlake
>>>>  drm/i915/display: prefer 3-letter acronym for icelake
>>>>  drm/i915/display: prefer 3-letter acronym for ironlake
>>>>
>>>> drivers/gpu/drm/i915/display/intel_crt.c      |   6 +-
>>>> drivers/gpu/drm/i915/display/intel_ddi.c      |   4 +-
>>>> drivers/gpu/drm/i915/display/intel_display.c  | 278 +++++++++---------
>>>> drivers/gpu/drm/i915/display/intel_display.h  |   2 +-
>>>> drivers/gpu/drm/i915/display/intel_dp.c       |  34 +--
>>>> .../drm/i915/display/intel_fifo_underrun.c    |   6 +-
>>>> 6 files changed, 163 insertions(+), 167 deletions(-)
>>>
>>>-- 
>>>Jani Nikula, Intel Open Source Graphics Center