Lines Matching defs:subtype
73 unsigned int subtype;
140 if (chip->subtype == QPNP_TM_SUBTYPE_GEN1)
164 if (chip->subtype == QPNP_TM_SUBTYPE_GEN1) {
343 stage = chip->subtype == QPNP_TM_SUBTYPE_GEN1
374 u8 type, subtype, dig_major;
417 ret = qpnp_tm_read(chip, QPNP_TM_REG_SUBTYPE, &subtype);
420 "could not read subtype\n");
427 if (type != QPNP_TM_TYPE || (subtype != QPNP_TM_SUBTYPE_GEN1
428 && subtype != QPNP_TM_SUBTYPE_GEN2)) {
429 dev_err(&pdev->dev, "invalid type 0x%02x or subtype 0x%02x\n",
430 type, subtype);
434 chip->subtype = subtype;
435 if (subtype == QPNP_TM_SUBTYPE_GEN2 && dig_major >= 1)