---
name: "regulator_bulk_register_supply_alias"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/regulator_bulk_register_supply_alias"
---

# regulator\_bulk\_register\_supply\_alias(9)

register multiple aliases

## NAME

regulator\_bulk\_register\_supply\_alias - register multiple aliases

## SYNOPSIS

**int regulator\_bulk\_register\_supply\_alias(struct device \*** *dev***, const char \*const \*** *id***, struct device \*** *alias\_dev***, const char \*const \*** *alias\_id***, int** *num\_id***);**

## ARGUMENTS

*dev*

device that will be given as the regulator “consumer”

*id*

List of supply names or regulator IDs

*alias\_dev*

device that should be used to lookup the supply

*alias\_id*

List of supply names or regulator IDs that should be used to lookup the supply

*num\_id*

Number of aliases to register

## DESCRIPTION

*return* 0 on success, an errno on failure.

This helper function allows drivers to register several supply aliases in one operation. If any of the aliases cannot be registered any aliases that were registered will be removed before returning to the caller.

## AUTHORS

**Liam Girdwood** \<lrg@slimlogic.co.uk\>

Author.

**Mark Brown** \<broonie@opensource.wolfsonmicro.com\>\
 Wolfson Microelectronics,

Author.

## COPYRIGHT
