staticintarizona_poll_reg(struct arizona *arizona,inttimeout,unsignedintreg,unsignedintmask,unsignedinttarget){unsignedintval =0;intret, i;for(i =0; i < timeout; i++) { ret =regmap_read(arizona->regmap, reg, &val);if(ret !=0) { dev_err(arizona->dev,"Failed to read reg %u: %d\...
*/ #define regmap_read_poll_timeout(map, addr, val, cond, sleep_us, timeout_us) \ ({ \ int __ret, __tmp; \ __tmp = read_poll_timeout(regmap_read, __ret, __ret || (cond), \ sleep_us, timeout_us, false, (map), (addr), &(val)); \ __ret ?: __tmp; \ }) ...
Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up {...
staticintarizona_poll_reg(struct arizona *arizona,inttimeout,unsignedintreg,unsignedintmask,unsignedinttarget){unsignedintval =0;intret, i;for(i =0; i < timeout; i++) { ret =regmap_read(arizona->regmap, reg, &val);if(ret !=0) { dev_err(arizona->dev,"Failed to read reg %u: %d\...