mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
spi: pxa2xx: Use an enum for type
That seems to be the correct type. Signed-off-by: Lubomir Rintel <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
561de45f72
commit
55ef8262f2
2 changed files with 4 additions and 4 deletions
|
|
@ -1431,7 +1431,7 @@ pxa2xx_spi_init_pdata(struct platform_device *pdev)
|
|||
struct resource *res;
|
||||
const struct acpi_device_id *adev_id = NULL;
|
||||
const struct pci_device_id *pcidev_id = NULL;
|
||||
int type;
|
||||
enum pxa_ssp_type type;
|
||||
|
||||
adev = ACPI_COMPANION(&pdev->dev);
|
||||
|
||||
|
|
@ -1445,9 +1445,9 @@ pxa2xx_spi_init_pdata(struct platform_device *pdev)
|
|||
return NULL;
|
||||
|
||||
if (adev_id)
|
||||
type = (int)adev_id->driver_data;
|
||||
type = (enum pxa_ssp_type)adev_id->driver_data;
|
||||
else if (pcidev_id)
|
||||
type = (int)pcidev_id->driver_data;
|
||||
type = (enum pxa_ssp_type)pcidev_id->driver_data;
|
||||
else
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue