Lines Matching refs:reg_data
34 struct reg_data { struct
55 struct reg_data *reg_data; member
70 static struct reg_data sm5502_reg_data[] = {
521 unsigned int reg_data, vendor_id, version_id; in sm5502_init_dev_type() local
525 ret = regmap_read(info->regmap, SM5502_REG_DEVICE_ID, ®_data); in sm5502_init_dev_type()
532 vendor_id = ((reg_data & SM5502_REG_DEVICE_ID_VENDOR_MASK) >> in sm5502_init_dev_type()
534 version_id = ((reg_data & SM5502_REG_DEVICE_ID_VERSION_MASK) >> in sm5502_init_dev_type()
544 if (!info->reg_data[i].invert) in sm5502_init_dev_type()
545 val |= ~info->reg_data[i].val; in sm5502_init_dev_type()
547 val = info->reg_data[i].val; in sm5502_init_dev_type()
548 regmap_write(info->regmap, info->reg_data[i].reg, val); in sm5502_init_dev_type()
572 info->reg_data = sm5502_reg_data; in sm5022_muic_i2c_probe()