Skip to contentSkip to conversation

i2c-nomadik: add SMBUS_EMUL functionality

PATCH In review srinidhi 1 participant 2 messages Jul 12, 2010 – Aug 5, 2010

Subsystems (2)
lore
Share & tools
lore

srinidhi

author
#0 lore raw

PATCH 1/1 i2c-nomadik: add SMBUS_EMUL functionality

From: Prajadevi H <prajadevi.h-0IS4wlFg1OjSUeElwK9/[email protected]>

Support to emulate all SMBus commands on this adapter.

---
 drivers/i2c/busses/i2c-nomadik.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
drivers/i2c/busses/i2c-nomadik.c +1 -4
index 73de8ad..b734a44 100644
@@ -794,10 +794,7 @@ static irqreturn_t i2c_irq_handler(int irq, void *arg)
 
 static unsigned int nmk_i2c_functionality(struct i2c_adapter *adap)
 {
-	return I2C_FUNC_I2C
-		| I2C_FUNC_SMBUS_BYTE_DATA
-		| I2C_FUNC_SMBUS_WORD_DATA
-		| I2C_FUNC_SMBUS_I2C_BLOCK;
+	return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL;
 }
 
 static const struct i2c_algorithm nmk_i2c_algo = {
Signature · 1 line
1.6.3.3
author
#1 lore raw

Ben,

Quoted 16 lines · srinidhi

From: Prajadevi H <prajadevi.h-0IS4wlFg1OjSUeElwK9/[email protected]>

Support to emulate all SMBus commands on this adapter.

---
 drivers/i2c/busses/i2c-nomadik.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
drivers/i2c/busses/i2c-nomadik.c +0 -0
index 73de8ad..b734a44 100644
@@ -794,10 +794,7 @@ static irqreturn_t i2c_irq_handler(int irq, void *arg)
 

drivers/i2c/busses/i2c-nomadik.c static irqreturn_t i2c_irq_handler(int irq, void *arg) · line 800

Quoted 10 lines
drivers/i2c/busses/i2c-nomadik.c +1 -4
 static unsigned int nmk_i2c_functionality(struct i2c_adapter *adap)
 {
-	return I2C_FUNC_I2C
-		| I2C_FUNC_SMBUS_BYTE_DATA
-		| I2C_FUNC_SMBUS_WORD_DATA
-		| I2C_FUNC_SMBUS_I2C_BLOCK;
+	return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL;
 }
 
 static const struct i2c_algorithm nmk_i2c_algo = {

Will you be taking this patch via your tree?

Srinidhi