linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i2c-nomadik: add SMBUS_EMUL functionality
@ 2010-07-12  7:19 srinidhi
  2010-08-05  5:58 ` srinidhi
  0 siblings, 1 reply; 2+ messages in thread
From: srinidhi @ 2010-07-12  7:19 UTC (permalink / raw)
  To: ben-linux-elnMNo+KYs3YtjvyW6yDsg
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	prajadevi.h-0IS4wlFg1OjSUeElwK9/Pw,
	STEricsson_nomadik_linux-nkJGhpqTU55BDgjK7y7TUQ

From: Prajadevi H <prajadevi.h-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>

Support to emulate all SMBus commands on this adapter.

Signed-off-by: Prajadevi H <prajadevi.h-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
Acked-by: Srinidhi KASAGAR <srinidhi.kasagar-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
---
 drivers/i2c/busses/i2c-nomadik.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c
index 73de8ad..b734a44 100644
--- a/drivers/i2c/busses/i2c-nomadik.c
+++ b/drivers/i2c/busses/i2c-nomadik.c
@@ -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 = {
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] i2c-nomadik: add SMBUS_EMUL functionality
  2010-07-12  7:19 [PATCH] i2c-nomadik: add SMBUS_EMUL functionality srinidhi
@ 2010-08-05  5:58 ` srinidhi
  0 siblings, 0 replies; 2+ messages in thread
From: srinidhi @ 2010-08-05  5:58 UTC (permalink / raw)
  To: ben-linux-elnMNo+KYs3YtjvyW6yDsg
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	prajadevi.h-0IS4wlFg1OjSUeElwK9/Pw,
	STEricsson_nomadik_linux-nkJGhpqTU55BDgjK7y7TUQ

Ben,

On Mon, 2010-07-12 at 12:49 +0530, srinidhi wrote:
> From: Prajadevi H <prajadevi.h-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
> 
> Support to emulate all SMBus commands on this adapter.
> 
> Signed-off-by: Prajadevi H <prajadevi.h-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
> Acked-by: Srinidhi KASAGAR <srinidhi.kasagar-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
> ---
>  drivers/i2c/busses/i2c-nomadik.c |    5 +----
>  1 files changed, 1 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c
> index 73de8ad..b734a44 100644
> --- a/drivers/i2c/busses/i2c-nomadik.c
> +++ b/drivers/i2c/busses/i2c-nomadik.c
> @@ -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 = {

Will you be taking this patch via your tree?

Srinidhi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-05  5:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-12  7:19 [PATCH] i2c-nomadik: add SMBUS_EMUL functionality srinidhi
2010-08-05  5:58 ` srinidhi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).