Merge "driver: regulator: Fix the compilation warnings for pointer"

This commit is contained in:
qctecmdr 2023-06-08 08:31:44 -07:00 committed by Gerrit - the friendly Code Review server
commit 8fbff94a53

View File

@ -2732,7 +2732,7 @@ static int qpnp_lcdb_regulator_probe(struct platform_device *pdev)
return -EINVAL;
}
lcdb->subtype = (u8)of_device_get_match_data(&pdev->dev);
lcdb->subtype = (u8)(unsigned long)of_device_get_match_data(&pdev->dev);
lcdb->dev = &pdev->dev;
lcdb->pdev = pdev;
dev_id = of_match_device(lcdb->dev->driver->of_match_table, lcdb->dev);