Searched refs:currdev (Results 1 – 2 of 2) sorted by relevance
15 static struct udevice *currdev; variable32 ret = pmic_get(name, &currdev); in do_dev()38 if (!currdev) { in do_dev()43 printf("dev: %d @ %s\n", currdev->seq, currdev->name); in do_dev()84 if (!currdev) { in do_dump()89 dev = currdev; in do_dump()121 if (!currdev) { in do_read()126 dev = currdev; in do_read()158 if (!currdev) { in do_write()163 dev = currdev; in do_write()
16 static struct udevice *currdev; variable34 ret = regulator_get_by_platname(name, &currdev); in do_dev()40 if (!currdev) { in do_dev()45 uc_pdata = dev_get_uclass_platdata(currdev); in do_dev()47 printf("%s: no regulator platform data!\n", currdev->name); in do_dev()51 printf("dev: %s @ %s\n", uc_pdata->name, currdev->name); in do_dev()64 if (!currdev) { in curr_dev_and_platdata()69 *devp = currdev; in curr_dev_and_platdata()73 pr_err("Regulator: %s - missing platform data!\n", currdev->name); in curr_dev_and_platdata()240 if (currdev && (argc < 2 || strcmp(argv[1], "-a"))) { in do_status()