Commit 0317c6ce authored by Dan Carpenter's avatar Dan Carpenter Committed by Dave Airlie

drm/i915/bios: cleanup return type of intel_parse_bios()

These are unintuitive.  These are type bool and return -1 casted to true
on failure.  Let's just make it return an int.  The callers don't care,
but let's change this as a cleanup.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 7c014334
...@@ -427,7 +427,7 @@ parse_device_mapping(struct drm_psb_private *dev_priv, ...@@ -427,7 +427,7 @@ parse_device_mapping(struct drm_psb_private *dev_priv,
* *
* Returns 0 on success, nonzero on failure. * Returns 0 on success, nonzero on failure.
*/ */
bool psb_intel_init_bios(struct drm_device *dev) int psb_intel_init_bios(struct drm_device *dev)
{ {
struct drm_psb_private *dev_priv = dev->dev_private; struct drm_psb_private *dev_priv = dev->dev_private;
struct pci_dev *pdev = dev->pdev; struct pci_dev *pdev = dev->pdev;
......
...@@ -431,7 +431,7 @@ struct bdb_driver_features { ...@@ -431,7 +431,7 @@ struct bdb_driver_features {
u8 custom_vbt_version; u8 custom_vbt_version;
} __attribute__((packed)); } __attribute__((packed));
extern bool psb_intel_init_bios(struct drm_device *dev); extern int psb_intel_init_bios(struct drm_device *dev);
extern void psb_intel_destroy_bios(struct drm_device *dev); extern void psb_intel_destroy_bios(struct drm_device *dev);
/* /*
......
...@@ -692,7 +692,7 @@ static const struct dmi_system_id intel_no_opregion_vbt[] = { ...@@ -692,7 +692,7 @@ static const struct dmi_system_id intel_no_opregion_vbt[] = {
* *
* Returns 0 on success, nonzero on failure. * Returns 0 on success, nonzero on failure.
*/ */
bool int
intel_parse_bios(struct drm_device *dev) intel_parse_bios(struct drm_device *dev)
{ {
struct drm_i915_private *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
......
...@@ -476,7 +476,7 @@ struct bdb_edp { ...@@ -476,7 +476,7 @@ struct bdb_edp {
} __attribute__ ((packed)); } __attribute__ ((packed));
void intel_setup_bios(struct drm_device *dev); void intel_setup_bios(struct drm_device *dev);
bool intel_parse_bios(struct drm_device *dev); int intel_parse_bios(struct drm_device *dev);
/* /*
* Driver<->VBIOS interaction occurs through scratch bits in * Driver<->VBIOS interaction occurs through scratch bits in
......
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