dm: Cast away the const-ness of the global_data pointer
authorSimon Glass <sjg@chromium.org>
Thu, 12 Jun 2014 05:29:49 +0000 (23:29 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Jun 2014 17:55:49 +0000 (11:55 -0600)
commit89876a55a62f495302e2fd76094e45a65ca188b2
tree54dee9f0c349937bf39a2aebc2a7e1d9e6e60842
parent6a6d8fbef7eb801a6babad8a62b1318d098ed7ed
dm: Cast away the const-ness of the global_data pointer

In a very few cases we need to adjust the driver model root device, such as
when setting it up at initialisation. Add a macro to make this easier.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/root.c
drivers/core/uclass.c
include/dm/device-internal.h