Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fb2ad95 authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang
Browse files

i2c: rcar: report slave capabilities to users

parent 83caf989
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -604,7 +604,8 @@ static int rcar_unreg_slave(struct i2c_client *slave)
static u32 rcar_i2c_func(struct i2c_adapter *adap)
static u32 rcar_i2c_func(struct i2c_adapter *adap)
{
{
	/* This HW can't do SMBUS_QUICK and NOSTART */
	/* This HW can't do SMBUS_QUICK and NOSTART */
	return I2C_FUNC_I2C | (I2C_FUNC_SMBUS_EMUL & ~I2C_FUNC_SMBUS_QUICK);
	return I2C_FUNC_I2C | I2C_FUNC_SLAVE |
		(I2C_FUNC_SMBUS_EMUL & ~I2C_FUNC_SMBUS_QUICK);
}
}


static const struct i2c_algorithm rcar_i2c_algo = {
static const struct i2c_algorithm rcar_i2c_algo = {