> + data->muxc = i2c_mux_alloc(adapter, dev, SBSM_MAX_BATS, 0, > + I2C_MUX_LOCKED, &sbsm_select, NULL); > + if (!data->muxc) { > + dev_err(dev, "failed to alloc i2c mux\n"); Don't print errors on ENOMEM. Other than that, looks good to me, yet Peter has more insight to i2c-muxes these days.
Attachment:
signature.asc
Description: PGP signature