rv1126-uboot/include/dm
Stefan Roese 28027521be dm: core: Add dev_get_addr_ptr() to return a pointer to the reg address
On some platforms (e.g. x86), the return value of dev_get_addr() can't
be assigned to a pointer type variable directly. As there might be a
difference between the size of fdt_addr_t and the pointer type. On
x86 for example, "fdt_addr_t" is 64bit but "void *" only 32bit. So
assigning the register base directly in dev_get_addr() results in this
compilation warning:
  warning: cast to pointer from integer of different size

This patch introduces the new function dev_get_addr_ptr() that
returns a pointer to the 'reg' address that can be used by drivers
in this case.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2016-04-25 07:30:16 +02:00
..
platform_data serial: add BCM283x mini UART driver 2016-03-27 09:12:52 -04:00
device-internal.h
device.h dm: core: Add dev_get_addr_ptr() to return a pointer to the reg address 2016-04-25 07:30:16 +02:00
lists.h
pinctrl.h
platdata.h
root.h
test.h
uclass-id.h drivers: Add SPMI bus uclass 2016-04-01 17:18:12 -04:00
uclass-internal.h
uclass.h
util.h