]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/cdclk: have only one init/uninit function
authorJani Nikula <jani.nikula@intel.com>
Fri, 5 Apr 2019 11:00:26 +0000 (14:00 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 8 Apr 2019 06:53:40 +0000 (09:53 +0300)
commit93a643f29bcbaac1f2199a5802536b202a553bbe
treef0bdce790cdaa69b3fe2c8fef90ccd26220ed7dd
parente7674ef682f2a018bc34a25f0b32ac9baddf44da
drm/i915/cdclk: have only one init/uninit function

While transitioning to having better clarity between the modules, it's
desirable to have the function name prefixes reflect the
module. Functions in intel_foo.c should be prefixed intel_foo_.

Expose only one CDCLK init/uninit function from intel_cdclk.c instead of
one per platform. Obviously this adds one "unnecessary" if ladder within
the entry points. However it should be considered more of a CDCLK
implementation detail how this is done per platform, instead of exposing
the fact. In other words, abstract the CDCLK module better.

No functional changes.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/f63ed6e129098a32c63735be6cffa4756e7947af.1554461791.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_cdclk.c
drivers/gpu/drm/i915/intel_cdclk.h
drivers/gpu/drm/i915/intel_runtime_pm.c