CPCAP_REG_INTS1
int reg = CPCAP_REG_INTS1 + (regnum * CPCAP_REGISTER_SIZE);
if (reg < CPCAP_REG_INTS1 || reg > CPCAP_REG_INTS4)
error = regmap_read(ddata->reg, CPCAP_REG_INTS1, &val);
error = regmap_read(ddata->reg, CPCAP_REG_INTS1, &val);
if (!regmap_test_bits(regmap, CPCAP_REG_INTS1, BIT(CPCAP_BIT_HS_S))) {
} else if (regmap_test_bits(regmap, CPCAP_REG_INTS1,
if (regmap_test_bits(regmap, CPCAP_REG_INTS1, BIT(CPCAP_BIT_HS_S)) == 1)
mb2 = regmap_test_bits(regmap, CPCAP_REG_INTS1, BIT(CPCAP_BIT_MB2_S));