axp81x: Use the default regnode_init method
MFC after: 1 week
This commit is contained in:
parent
5fdced0195
commit
e09708bc24
@ -746,12 +746,6 @@ axp8xx_write(device_t dev, uint8_t reg, uint8_t val)
|
||||
return (iicbus_transfer(dev, msg, 2));
|
||||
}
|
||||
|
||||
static int
|
||||
axp8xx_regnode_init(struct regnode *regnode)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
axp8xx_regnode_enable(struct regnode *regnode, bool enable, int *udelay)
|
||||
{
|
||||
@ -869,7 +863,6 @@ axp8xx_regnode_get_voltage(struct regnode *regnode, int *uvolt)
|
||||
|
||||
static regnode_method_t axp8xx_regnode_methods[] = {
|
||||
/* Regulator interface */
|
||||
REGNODEMETHOD(regnode_init, axp8xx_regnode_init),
|
||||
REGNODEMETHOD(regnode_enable, axp8xx_regnode_enable),
|
||||
REGNODEMETHOD(regnode_set_voltage, axp8xx_regnode_set_voltage),
|
||||
REGNODEMETHOD(regnode_get_voltage, axp8xx_regnode_get_voltage),
|
||||
|
Loading…
Reference in New Issue
Block a user