]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
core: drop const for struct driver_info
authorWalter Lozano <walter.lozano@collabora.com>
Thu, 25 Jun 2020 04:10:10 +0000 (01:10 -0300)
committerSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 04:00:29 +0000 (22:00 -0600)
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>
drivers/core/device.c
drivers/core/root.c
include/dm/device-internal.h

index a7408d9c76c61aa451833145d23644888633a9aa..2d6c667564be67254f38d01804c2706424232fcd 100644 (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;
index 7d257ea887dd482b803c94836fa6375f84d228a7..23a65cd71df786693ed15b838933566df88a86c6 100644 (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",
 };
 
index 294d6c18105ac23796a6aa3f744f4a159e944925..5145fb4e1459a35936b0ab84e408da66dfd81c07 100644 (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