twsi: remove write-only softc field
MFC after: 1 week
This commit is contained in:
parent
de86f339cd
commit
f00bc54f62
@ -121,8 +121,6 @@ a10_twsi_attach(device_t dev)
|
||||
sc->reg_baud_rate = TWI_CCR;
|
||||
sc->reg_soft_reset = TWI_SRST;
|
||||
|
||||
sc->need_ack = true;
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "allwinner,sun6i-a31-i2c") ||
|
||||
ofw_bus_is_compatible(dev, "allwinner,sun6i-a83t-i2c"))
|
||||
sc->iflag_w1c = true;
|
||||
|
@ -65,7 +65,6 @@ struct twsi_softc {
|
||||
int transfer;
|
||||
int error;
|
||||
uint32_t control_val;
|
||||
bool need_ack;
|
||||
bool iflag_w1c;
|
||||
|
||||
bus_size_t reg_data;
|
||||
|
Loading…
Reference in New Issue
Block a user