drm/i915/bios: rename intel_parse_bios to intel_bios_init
authorJani Nikula <jani.nikula@intel.com>
Mon, 14 Dec 2015 10:50:49 +0000 (12:50 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 16 Dec 2015 09:22:20 +0000 (11:22 +0200)
While at it, move the declaration to where everything else is declared.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/7d9d879603038889f0128cf7cbbd9f591edc11dd.1450089383.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_bios.h

index 84e2b202ecb535c2eace65fc52d948cf4975f5a0..9cb71b6aed5d37f3eb6907d26a8af0d7b386f6e3 100644 (file)
@@ -370,7 +370,7 @@ static int i915_load_modeset_init(struct drm_device *dev)
        struct drm_i915_private *dev_priv = dev->dev_private;
        int ret;
 
-       ret = intel_parse_bios(dev);
+       ret = intel_bios_init(dev);
        if (ret)
                DRM_INFO("failed to find VBIOS tables\n");
 
index 912408539822f95e31acc0a4dd2b09d85c9f6726..a2bd4c6a86a1843b8b4009e8ce524c17ccebf570 100644 (file)
@@ -3352,6 +3352,9 @@ static inline bool intel_gmbus_is_forced_bit(struct i2c_adapter *adapter)
 }
 extern void intel_i2c_reset(struct drm_device *dev);
 
+/* intel_bios.c */
+int intel_bios_init(struct drm_device *dev);
+
 /* intel_opregion.c */
 #ifdef CONFIG_ACPI
 extern int intel_opregion_setup(struct drm_device *dev);
index 1c86bc2b628f78ddc41b05b9ef8c9c26f8af9743..04fb9ded1805638c4c1ecb955f77b7878322657d 100644 (file)
@@ -1282,7 +1282,7 @@ static const struct vbt_header *find_vbt(void __iomem *bios, size_t size)
 }
 
 /**
- * intel_parse_bios - find VBT and initialize settings from the BIOS
+ * intel_bios_init - find VBT and initialize settings from the BIOS
  * @dev: DRM device
  *
  * Loads the Video BIOS and checks that the VBT exists.  Sets scratch registers
@@ -1291,7 +1291,7 @@ static const struct vbt_header *find_vbt(void __iomem *bios, size_t size)
  * Returns 0 on success, nonzero on failure.
  */
 int
-intel_parse_bios(struct drm_device *dev)
+intel_bios_init(struct drm_device *dev)
 {
        struct drm_i915_private *dev_priv = dev->dev_private;
        struct pci_dev *pdev = dev->pdev;
index 7ec8c9aefb849be22fac3b818097d49bda8d1377..689eb42f863c7cb19aaacfd73a6c3c09f0e8e697 100644 (file)
@@ -588,8 +588,6 @@ struct bdb_psr {
        struct psr_table psr_table[16];
 } __packed;
 
-int intel_parse_bios(struct drm_device *dev);
-
 /*
  * Driver<->VBIOS interaction occurs through scratch bits in
  * GR18 & SWF*.