axp81x: Use the default regnode_init method
MFC after: 1 week
This commit is contained in:
parent
a24735546b
commit
f66cb502db
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353918
@ -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