diff --git a/drivers/mfd/asus-ec.c b/drivers/mfd/asus-ec.c index 686fb121c1f99..80693a83f1cf9 100644 --- a/drivers/mfd/asus-ec.c +++ b/drivers/mfd/asus-ec.c @@ -164,7 +164,7 @@ static int asus_ec_write(struct asus_ec_data *priv, u16 data) static int asus_ec_read(struct asus_ec_data *priv, bool in_irq) { - int ret = i2c_smbus_read_i2c_block_data(priv->self, 0x6A, 8, priv->ec_data); + int ret = i2c_smbus_read_block_data(priv->self, 0x6A, priv->ec_data); dev_dbg(&priv->self->dev, "EC read: %*ph, ret = %d%s\n", 8, priv->ec_data, ret, in_irq ? "; in irq" : ""); diff --git a/drivers/misc/asus-dockram.c b/drivers/misc/asus-dockram.c index 8d063d17da511..31b0f2859f178 100644 --- a/drivers/misc/asus-dockram.c +++ b/drivers/misc/asus-dockram.c @@ -27,8 +27,7 @@ int asus_dockram_read(struct i2c_client *client, int reg, char *buf) int rc; memset(buf, 0, DOCKRAM_ENTRY_BUFSIZE); - rc = i2c_smbus_read_i2c_block_data(client, reg, DOCKRAM_ENTRY_BUFSIZE, - buf); + rc = i2c_smbus_read_block_data(client, reg, buf); if (rc < 0) return rc; @@ -52,7 +51,7 @@ int asus_dockram_write(struct i2c_client *client, int reg, const char *buf) dev_dbg(&client->dev, "sending data; buffer: %*ph\n", buf[0] + 1, buf); - return i2c_smbus_write_i2c_block_data(client, reg, buf[0] + 1, buf); + return i2c_smbus_write_block_data(client, reg, buf[0] + 1, buf); } EXPORT_SYMBOL_GPL(asus_dockram_write);