Commit 507d7c17 authored by Jani Nikula's avatar Jani Nikula

drm/i915/gmbus: move GPIO enum to gmbus

The GPIO enum is only used in intel_gmbus.c, hide it there.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/3c386ce08d7d53a45c14c2e7519e4cc78a8161be.1667383630.git.jani.nikula@intel.com
parent f46e3f5f
...@@ -61,24 +61,6 @@ struct intel_remapped_info; ...@@ -61,24 +61,6 @@ struct intel_remapped_info;
struct intel_rotation_info; struct intel_rotation_info;
struct pci_dev; struct pci_dev;
enum i915_gpio {
GPIOA,
GPIOB,
GPIOC,
GPIOD,
GPIOE,
GPIOF,
GPIOG,
GPIOH,
__GPIOI_UNUSED,
GPIOJ,
GPIOK,
GPIOL,
GPIOM,
GPION,
GPIOO,
};
/* /*
* Keep the pipe enum values fixed: the code assumes that PIPE_A=0, the * Keep the pipe enum values fixed: the code assumes that PIPE_A=0, the
* rest have consecutive values and match the enum values of transcoders * rest have consecutive values and match the enum values of transcoders
......
...@@ -49,9 +49,27 @@ struct intel_gmbus { ...@@ -49,9 +49,27 @@ struct intel_gmbus {
struct drm_i915_private *i915; struct drm_i915_private *i915;
}; };
enum gmbus_gpio {
GPIOA,
GPIOB,
GPIOC,
GPIOD,
GPIOE,
GPIOF,
GPIOG,
GPIOH,
__GPIOI_UNUSED,
GPIOJ,
GPIOK,
GPIOL,
GPIOM,
GPION,
GPIOO,
};
struct gmbus_pin { struct gmbus_pin {
const char *name; const char *name;
enum i915_gpio gpio; enum gmbus_gpio gpio;
}; };
/* Map gmbus pin pairs to names and registers. */ /* Map gmbus pin pairs to names and registers. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment