u8 reg_pld_table2;
u8 reg_pld_table3;
u8 reg_pld_table4;
- u8 reg_advance;
+ u8 reg_advanced;
};
struct sx150x_456_pri {
u8 reg_pld_table2;
u8 reg_pld_table3;
u8 reg_pld_table4;
- u8 reg_advance;
+ u8 reg_advanced;
};
struct sx150x_789_pri {
.reg_pld_mode = 0x10,
.reg_pld_table0 = 0x11,
.reg_pld_table2 = 0x13,
- .reg_advance = 0xad,
+ .reg_advanced = 0xad,
},
.ngpios = 4,
.pins = sx150x_4_pins,
.reg_pld_table2 = 0x13,
.reg_pld_table3 = 0x14,
.reg_pld_table4 = 0x15,
- .reg_advance = 0xad,
+ .reg_advanced = 0xad,
},
.ngpios = 8,
.pins = sx150x_8_pins,
.reg_pld_table2 = 0x26,
.reg_pld_table3 = 0x28,
.reg_pld_table4 = 0x2a,
- .reg_advance = 0xad,
+ .reg_advanced = 0xad,
},
.ngpios = 16,
.pins = sx150x_16_pins,
.reg_pld_table2 = 0x26,
.reg_pld_table3 = 0x28,
.reg_pld_table4 = 0x2a,
- .reg_advance = 0xad,
+ .reg_advanced = 0xad,
},
.ngpios = 16,
.pins = sx150x_16_pins,
value = SX150X_789_REG_MISC_AUTOCLEAR_OFF;
break;
case SX150X_456:
- reg = pctl->data->pri.x456.reg_advance;
+ reg = pctl->data->pri.x456.reg_advanced;
value = 0x00;
/*
return 0;
break;
case SX150X_123:
- reg = pctl->data->pri.x123.reg_advance;
+ reg = pctl->data->pri.x123.reg_advanced;
value = 0x00;
break;
default:
reg == data->pri.x789.reg_reset))
||
(data->model == SX150X_123 &&
- reg == data->pri.x123.reg_advance)
+ reg == data->pri.x123.reg_advanced)
||
(data->model == SX150X_456 &&
- reg == data->pri.x456.reg_advance)) {
+ reg == data->pri.x456.reg_advanced)) {
return 8;
} else {
return data->ngpios;