twsi: remove write-only softc field

MFC after:	1 week
This commit is contained in:
Andriy Gapon 2021-11-26 08:45:12 +02:00
parent de86f339cd
commit f00bc54f62
2 changed files with 0 additions and 3 deletions

View File

@ -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;

View File

@ -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;