/* * Ok to have it static: it is only used during probing and multiple I2C devices * cannot be probed simultaneously. Just make sure to avoid stale data.
*/ staticstruct mfd_cell as3711_subdevs[] = {
[AS3711_REGULATOR] = {.name = "as3711-regulator",},
[AS3711_BACKLIGHT] = {.name = "as3711-backlight",},
};
staticbool as3711_volatile_reg(struct device *dev, unsignedint reg)
{ switch (reg) { case AS3711_GPIO_SIGNAL_IN: case AS3711_INTERRUPT_STATUS_1: case AS3711_INTERRUPT_STATUS_2: case AS3711_INTERRUPT_STATUS_3: case AS3711_CHARGER_STATUS_1: case AS3711_CHARGER_STATUS_2: case AS3711_REG_STATUS: returntrue;
} returnfalse;
}
staticbool as3711_precious_reg(struct device *dev, unsignedint reg)
{ switch (reg) { case AS3711_INTERRUPT_STATUS_1: case AS3711_INTERRUPT_STATUS_2: case AS3711_INTERRUPT_STATUS_3: returntrue;
} returnfalse;
}
staticbool as3711_readable_reg(struct device *dev, unsignedint reg)
{ switch (reg) { case AS3711_SD_1_VOLTAGE: case AS3711_SD_2_VOLTAGE: case AS3711_SD_3_VOLTAGE: case AS3711_SD_4_VOLTAGE: case AS3711_LDO_1_VOLTAGE: case AS3711_LDO_2_VOLTAGE: case AS3711_LDO_3_VOLTAGE: case AS3711_LDO_4_VOLTAGE: case AS3711_LDO_5_VOLTAGE: case AS3711_LDO_6_VOLTAGE: case AS3711_LDO_7_VOLTAGE: case AS3711_LDO_8_VOLTAGE: case AS3711_SD_CONTROL: case AS3711_GPIO_SIGNAL_OUT: case AS3711_GPIO_SIGNAL_IN: case AS3711_SD_CONTROL_1: case AS3711_SD_CONTROL_2: case AS3711_CURR_CONTROL: case AS3711_CURR1_VALUE: case AS3711_CURR2_VALUE: case AS3711_CURR3_VALUE: case AS3711_STEPUP_CONTROL_1: case AS3711_STEPUP_CONTROL_2: case AS3711_STEPUP_CONTROL_4: case AS3711_STEPUP_CONTROL_5: case AS3711_REG_STATUS: case AS3711_INTERRUPT_STATUS_1: case AS3711_INTERRUPT_STATUS_2: case AS3711_INTERRUPT_STATUS_3: case AS3711_CHARGER_STATUS_1: case AS3711_CHARGER_STATUS_2: case AS3711_ASIC_ID_1: case AS3711_ASIC_ID_2: returntrue;
} returnfalse;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.