mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Add IBP14gen6 id and refactor model numbers
This commit is contained in:
parent
b6dea7ac2e
commit
0d4a633c65
|
@ -96,13 +96,13 @@ static int *tdp_max_defs = NULL;
|
|||
|
||||
void uw_id_tdp(void)
|
||||
{
|
||||
if (uw_feats->model == 0x13) {
|
||||
if (uw_feats->model == UW_MODEL_PH4TUX) {
|
||||
tdp_min_defs = tdp_min_ph4tux;
|
||||
tdp_max_defs = tdp_max_ph4tux;
|
||||
} else if (uw_feats->model == 0x12) {
|
||||
} else if (uw_feats->model == UW_MODEL_PH4TRX) {
|
||||
tdp_min_defs = tdp_min_ph4trx;
|
||||
tdp_max_defs = tdp_max_ph4trx;
|
||||
} else if (dmi_string_in(DMI_PRODUCT_SERIAL, "PH4TQX")) {
|
||||
} else if (uw_feats->model == UW_MODEL_PH4TQF) {
|
||||
tdp_min_defs = tdp_min_ph4tqx;
|
||||
tdp_max_defs = tdp_max_ph4tqx;
|
||||
} else if (dmi_match(DMI_PRODUCT_SKU, "POLARIS1XA02")) {
|
||||
|
|
|
@ -46,6 +46,10 @@ struct uniwill_interface_t {
|
|||
uniwill_write_ec_ram_t *write_ec_ram;
|
||||
};
|
||||
|
||||
#define UW_MODEL_PH4TUX 0x13
|
||||
#define UW_MODEL_PH4TRX 0x12
|
||||
#define UW_MODEL_PH4TQF 0x14
|
||||
|
||||
struct uniwill_device_features_t {
|
||||
u8 model;
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue