Searched refs:npm2100_attr (Results 1 – 1 of 1) sorted by relevance
107 static const struct npm2100_attr_t npm2100_attr[] = { variable313 for (int idx = 0; idx < ARRAY_SIZE(npm2100_attr); idx++) { in npm2100_vbat_attr_get()314 if ((npm2100_attr[idx].chan == chan) && (npm2100_attr[idx].attr == attr)) { in npm2100_vbat_attr_get()319 int ret = i2c_reg_read_byte_dt(&config->i2c, npm2100_attr[idx].reg, in npm2100_vbat_attr_get()326 reg_data = FIELD_GET(npm2100_attr[idx].reg_mask, reg_data); in npm2100_vbat_attr_get()328 ret = linear_range_get_value(npm2100_attr[idx].range, reg_data, &val_mv); in npm2100_vbat_attr_get()424 for (int idx = 0; idx < ARRAY_SIZE(npm2100_attr); idx++) { in npm2100_vbat_attr_set()425 if ((npm2100_attr[idx].chan == chan) && (npm2100_attr[idx].attr == attr)) { in npm2100_vbat_attr_set()430 ret = linear_range_get_index(npm2100_attr[idx].range, in npm2100_vbat_attr_set()437 reg_data = FIELD_PREP(npm2100_attr[idx].reg_mask, range_idx); in npm2100_vbat_attr_set()[all …]