core: drop const for struct driver_info

In order to prepare for a new support of phandle when OF_PLATDATA is used
drop the const for struct driver_info as this struct will need to be
updated on runtime.

Signed-off-by: Walter Lozano <walter.lozano@collabora.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Walter Lozano 2020-06-25 01:10:10 -03:00 committed by Simon Glass
parent 6397427c47
commit 908d0243ac
3 changed files with 3 additions and 3 deletions

View file

@ -248,7 +248,7 @@ int device_bind_ofnode(struct udevice *parent, const struct driver *drv,
}
int device_bind_by_name(struct udevice *parent, bool pre_reloc_only,
const struct driver_info *info, struct udevice **devp)
struct driver_info *info, struct udevice **devp)
{
struct driver *drv;
uint platdata_size = 0;

View file

@ -26,7 +26,7 @@
DECLARE_GLOBAL_DATA_PTR;
static const struct driver_info root_info = {
static struct driver_info root_info = {
.name = "root_driver",
};

View file

@ -81,7 +81,7 @@ int device_bind_with_driver_data(struct udevice *parent,
* @return 0 if OK, -ve on error
*/
int device_bind_by_name(struct udevice *parent, bool pre_reloc_only,
const struct driver_info *info, struct udevice **devp);
struct driver_info *info, struct udevice **devp);
/**
* device_ofdata_to_platdata() - Read platform data for a device