Lines Matching refs:reg_data
30 struct reg_data { struct
66 struct reg_data *reg_data; member
74 static struct reg_data sm5502_reg_data[] = {
102 static struct reg_data sm5504_reg_data[] = {
644 unsigned int reg_data, vendor_id, version_id; in sm5502_init_dev_type() local
648 ret = regmap_read(info->regmap, SM5502_REG_DEVICE_ID, ®_data); in sm5502_init_dev_type()
655 vendor_id = ((reg_data & SM5502_REG_DEVICE_ID_VENDOR_MASK) >> in sm5502_init_dev_type()
657 version_id = ((reg_data & SM5502_REG_DEVICE_ID_VERSION_MASK) >> in sm5502_init_dev_type()
667 if (!info->type->reg_data[i].invert) in sm5502_init_dev_type()
668 val |= ~info->type->reg_data[i].val; in sm5502_init_dev_type()
670 val = info->type->reg_data[i].val; in sm5502_init_dev_type()
671 regmap_write(info->regmap, info->type->reg_data[i].reg, val); in sm5502_init_dev_type()
780 .reg_data = sm5502_reg_data,
790 .reg_data = sm5504_reg_data,