mbox series

[0/5] Rename all CSR references to DMC

Message ID 20210511231757.14873-1-anusha.srivatsa@intel.com (mailing list archive)
Headers show
Series Rename all CSR references to DMC | expand

Message

Srivatsa, Anusha May 11, 2021, 11:17 p.m. UTC
Currently in our driver we use both CSR and DMC interchangeably.
Even though the spec mentions both, we do not follow that convention
in the driver.

Renaming all references of CSR to just be DMC. This hopefully makes
the driver of this part a litlle less confusing.

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

Anusha Srivatsa (5):
  drm/i915/dmc: s/intel_csr/intel_dmc
  drm/i915/dmc: s/HAS_CSR/HAS_DMC
  drm/i915/dmc: Rename macro names containing csr
  drm/i915/dmc: Rename functions names having "csr"
  drm/i915/dmc: s/intel_csr.c/intel_dmc.c and s/intel_csr.h/intel_dmc.h

 drivers/gpu/drm/i915/Makefile                 |   2 +-
 drivers/gpu/drm/i915/display/intel_csr.h      |  21 --
 drivers/gpu/drm/i915/display/intel_display.c  |  16 +-
 .../drm/i915/display/intel_display_debugfs.c  |  30 +-
 .../drm/i915/display/intel_display_power.c    |  82 ++---
 .../i915/display/{intel_csr.c => intel_dmc.c} | 335 +++++++++---------
 drivers/gpu/drm/i915/display/intel_dmc.h      |  21 ++
 drivers/gpu/drm/i915/display/intel_psr.c      |   2 +-
 drivers/gpu/drm/i915/i915_drv.c               |   8 +-
 drivers/gpu/drm/i915/i915_drv.h               |   6 +-
 drivers/gpu/drm/i915/i915_gpu_error.c         |  12 +-
 drivers/gpu/drm/i915/i915_pci.c               |   4 +-
 drivers/gpu/drm/i915/i915_reg.h               |  28 +-
 drivers/gpu/drm/i915/intel_device_info.c      |   2 +-
 drivers/gpu/drm/i915/intel_device_info.h      |   2 +-
 15 files changed, 285 insertions(+), 286 deletions(-)
 delete mode 100644 drivers/gpu/drm/i915/display/intel_csr.h
 rename drivers/gpu/drm/i915/display/{intel_csr.c => intel_dmc.c} (66%)
 create mode 100644 drivers/gpu/drm/i915/display/intel_dmc.h

Comments

Jani Nikula May 12, 2021, 1:40 p.m. UTC | #1
On Tue, 11 May 2021, Anusha Srivatsa <anusha.srivatsa@intel.com> wrote:
> Currently in our driver we use both CSR and DMC interchangeably.
> Even though the spec mentions both, we do not follow that convention
> in the driver.
>
> Renaming all references of CSR to just be DMC. This hopefully makes
> the driver of this part a litlle less confusing.
>
> Suggested-by: Jani Nikula <jani.nikula@linux.intel.com>

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

>
> Anusha Srivatsa (5):
>   drm/i915/dmc: s/intel_csr/intel_dmc
>   drm/i915/dmc: s/HAS_CSR/HAS_DMC
>   drm/i915/dmc: Rename macro names containing csr
>   drm/i915/dmc: Rename functions names having "csr"
>   drm/i915/dmc: s/intel_csr.c/intel_dmc.c and s/intel_csr.h/intel_dmc.h
>
>  drivers/gpu/drm/i915/Makefile                 |   2 +-
>  drivers/gpu/drm/i915/display/intel_csr.h      |  21 --
>  drivers/gpu/drm/i915/display/intel_display.c  |  16 +-
>  .../drm/i915/display/intel_display_debugfs.c  |  30 +-
>  .../drm/i915/display/intel_display_power.c    |  82 ++---
>  .../i915/display/{intel_csr.c => intel_dmc.c} | 335 +++++++++---------
>  drivers/gpu/drm/i915/display/intel_dmc.h      |  21 ++
>  drivers/gpu/drm/i915/display/intel_psr.c      |   2 +-
>  drivers/gpu/drm/i915/i915_drv.c               |   8 +-
>  drivers/gpu/drm/i915/i915_drv.h               |   6 +-
>  drivers/gpu/drm/i915/i915_gpu_error.c         |  12 +-
>  drivers/gpu/drm/i915/i915_pci.c               |   4 +-
>  drivers/gpu/drm/i915/i915_reg.h               |  28 +-
>  drivers/gpu/drm/i915/intel_device_info.c      |   2 +-
>  drivers/gpu/drm/i915/intel_device_info.h      |   2 +-
>  15 files changed, 285 insertions(+), 286 deletions(-)
>  delete mode 100644 drivers/gpu/drm/i915/display/intel_csr.h
>  rename drivers/gpu/drm/i915/display/{intel_csr.c => intel_dmc.c} (66%)
>  create mode 100644 drivers/gpu/drm/i915/display/intel_dmc.h