Lines Matching defs:mod_no
421 * @mod_no: module number
425 static struct regmap *twl_get_regmap(u8 mod_no)
434 if (unlikely(mod_no >= twl_get_last_module())) {
435 pr_err("%s: invalid module number %d\n", DRIVER_NAME, mod_no);
439 sid = twl_priv->twl_map[mod_no].sid;
447 * @mod_no: module number
454 int twl_i2c_write(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes)
456 struct regmap *regmap = twl_get_regmap(mod_no);
462 ret = regmap_bulk_write(regmap, twl_priv->twl_map[mod_no].base + reg,
467 DRIVER_NAME, mod_no, reg, num_bytes);
475 * @mod_no: module number
482 int twl_i2c_read(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes)
484 struct regmap *regmap = twl_get_regmap(mod_no);
490 ret = regmap_bulk_read(regmap, twl_priv->twl_map[mod_no].base + reg,
495 DRIVER_NAME, mod_no, reg, num_bytes);
504 * @mod_no: module number
509 int twl_set_regcache_bypass(u8 mod_no, bool enable)
511 struct regmap *regmap = twl_get_regmap(mod_no);
609 add_numbered_child(unsigned mod_no, const char *name, int num,
617 if (unlikely(mod_no >= twl_get_last_module())) {
618 pr_err("%s: invalid module number %d\n", DRIVER_NAME, mod_no);
621 sid = twl_priv->twl_map[mod_no].sid;
667 static inline struct device *add_child(unsigned mod_no, const char *name,
671 return add_numbered_child(mod_no, name, -1, pdata, pdata_len,