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: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
7c0143341a
commit
0317c6cecd
|
@ -427,7 +427,7 @@ parse_device_mapping(struct drm_psb_private *dev_priv,
|
|||
*
|
||||
* 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 pci_dev *pdev = dev->pdev;
|
||||
|
|
|
@ -431,7 +431,7 @@ struct bdb_driver_features {
|
|||
u8 custom_vbt_version;
|
||||
} __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);
|
||||
|
||||
/*
|
||||
|
|
|
@ -692,7 +692,7 @@ static const struct dmi_system_id intel_no_opregion_vbt[] = {
|
|||
*
|
||||
* Returns 0 on success, nonzero on failure.
|
||||
*/
|
||||
bool
|
||||
int
|
||||
intel_parse_bios(struct drm_device *dev)
|
||||
{
|
||||
struct drm_i915_private *dev_priv = dev->dev_private;
|
||||
|
|
|
@ -476,7 +476,7 @@ struct bdb_edp {
|
|||
} __attribute__ ((packed));
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue