dm: core: Convert driver_bind() to use const
The driver is not modified by driver model, so update driver_bind() to recognise that. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
@@ -34,7 +34,7 @@ struct udevice;
|
||||
* @devp: Returns a pointer to the bound device
|
||||
* @return 0 if OK, -ve on error
|
||||
*/
|
||||
int device_bind(struct udevice *parent, struct driver *drv,
|
||||
int device_bind(struct udevice *parent, const struct driver *drv,
|
||||
const char *name, void *platdata, int of_offset,
|
||||
struct udevice **devp);
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ struct driver_info;
|
||||
* when the device is probed and will be unique within the device's uclass.
|
||||
*/
|
||||
struct udevice {
|
||||
struct driver *driver;
|
||||
const struct driver *driver;
|
||||
const char *name;
|
||||
void *platdata;
|
||||
void *parent_platdata;
|
||||
|
||||
Reference in New Issue
Block a user