mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
pylibfdt: Correct the type for fdt_property_stub()
This function should use a void * type, not char *. This causes an error: TypeError: in method 'fdt_property_stub', argument 3 of type 'char const *' Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
903fe17aa8
commit
97de532e59
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
||||||
* a struct called fdt_property. That struct causes swig to create a class in
|
* a struct called fdt_property. That struct causes swig to create a class in
|
||||||
* libfdt.py called fdt_property(), which confuses things.
|
* libfdt.py called fdt_property(), which confuses things.
|
||||||
*/
|
*/
|
||||||
static int fdt_property_stub(void *fdt, const char *name, const char *val,
|
static int fdt_property_stub(void *fdt, const char *name, const void *val,
|
||||||
int len)
|
int len)
|
||||||
{
|
{
|
||||||
return fdt_property(fdt, name, val, len);
|
return fdt_property(fdt, name, val, len);
|
||||||
|
@ -1113,6 +1113,6 @@ int fdt_property_cell(void *fdt, const char *name, uint32_t val);
|
||||||
* This function has a stub since the name fdt_property is used for both a
|
* This function has a stub since the name fdt_property is used for both a
|
||||||
* function and a struct, which confuses SWIG.
|
* function and a struct, which confuses SWIG.
|
||||||
*/
|
*/
|
||||||
int fdt_property_stub(void *fdt, const char *name, const char *val, int len);
|
int fdt_property_stub(void *fdt, const char *name, const void *val, int len);
|
||||||
|
|
||||||
%include <../libfdt/libfdt.h>
|
%include <../libfdt/libfdt.h>
|
||||||
|
|
Loading…
Reference in a new issue