aboutsummaryrefslogtreecommitdiff
path: root/cmd/demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/demo.c')
-rw-r--r--cmd/demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/demo.c b/cmd/demo.c
index 78a55f7..a2957f7 100644
--- a/cmd/demo.c
+++ b/cmd/demo.c
@@ -48,7 +48,7 @@ static int do_demo_light(struct cmd_tbl *cmdtp, int flag, int argc,
int ret;
if (argc) {
- light = simple_strtoul(argv[0], NULL, 16);
+ light = hextoul(argv[0], NULL);
ret = demo_set_light(demo_dev, light);
} else {
ret = demo_get_light(demo_dev);