Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/ti/twl/twl_vreg.c
Show All 12 Lines | |||||
new->fixed_voltage = fixed_voltage; | new->fixed_voltage = fixed_voltage; | ||||
new->supp_voltages = voltages; | new->supp_voltages = voltages; | ||||
new->num_supp_voltages = num_voltages; | new->num_supp_voltages = num_voltages; | ||||
/* Add a sysctl entry for the voltage */ | /* Add a sysctl entry for the voltage */ | ||||
new->oid = SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, name, | new->oid = SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, name, | ||||
CTLTYPE_INT | CTLFLAG_RD, sc, 0, | CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_NEEDGIANT, sc, 0, | ||||
twl_vreg_sysctl_voltage, "I", "voltage regulator"); | twl_vreg_sysctl_voltage, "I", "voltage regulator"); | ||||
/* Finally add the regulator to list of supported regulators */ | /* Finally add the regulator to list of supported regulators */ | ||||
LIST_INSERT_HEAD(&sc->sc_vreg_list, new, entries); | LIST_INSERT_HEAD(&sc->sc_vreg_list, new, entries); | ||||
return (new); | return (new); | ||||
} | } | ||||
Show All 12 Lines |