mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00

Handle encoder and connector init failures in g4x_hdmi_init(). This is similar to g4x_dp_init(). Cc: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: Ville Syrjala <ville.syrjala@linux.intel.com> Reported-and-tested-by: Sergey Senozhatsky <senozhatsky@chromium.org> Closes: https://lore.kernel.org/r/20241031105145.2140590-1-senozhatsky@chromium.org Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/cafae7bf1f9ffb8f6a1d7a508cd2ce7dcf06fef7.1735568047.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
37 lines
764 B
C
37 lines
764 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2020 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _G4X_HDMI_H_
|
|
#define _G4X_HDMI_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include "i915_reg_defs.h"
|
|
|
|
enum port;
|
|
struct drm_atomic_state;
|
|
struct drm_connector;
|
|
struct drm_i915_private;
|
|
|
|
#ifdef I915
|
|
bool g4x_hdmi_init(struct drm_i915_private *dev_priv,
|
|
i915_reg_t hdmi_reg, enum port port);
|
|
int g4x_hdmi_connector_atomic_check(struct drm_connector *connector,
|
|
struct drm_atomic_state *state);
|
|
#else
|
|
static inline bool g4x_hdmi_init(struct drm_i915_private *dev_priv,
|
|
i915_reg_t hdmi_reg, int port)
|
|
{
|
|
return false;
|
|
}
|
|
static inline int g4x_hdmi_connector_atomic_check(struct drm_connector *connector,
|
|
struct drm_atomic_state *state)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif
|