for (i = 0; i < num_fields; i++) { struct mux_control *mux = &mux_chip->mux[i]; struct reg_field field;
s32 idle_state = MUX_IDLE_AS_IS;
u32 reg, mask; int bits;
ret = of_property_read_u32_index(np, "mux-reg-masks", 2 * i, ®); if (!ret)
ret = of_property_read_u32_index(np, "mux-reg-masks", 2 * i + 1, &mask); if (ret < 0) {
dev_err(dev, "bitfield %d: failed to read mux-reg-masks property: %d\n",
i, ret); return ret;
}
of_property_read_u32_index(np, "idle-states", i,
(u32 *)&idle_state); if (idle_state != MUX_IDLE_AS_IS) { if (idle_state < 0 || idle_state >= mux->states) {
dev_err(dev, "bitfield: %d: out of range idle state %d\n",
i, idle_state); return -EINVAL;
}
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.