* [PATCH 2/7] at91/i2c: move register header to drivers
[not found] <1310687525-22486-1-git-send-email-plagnioj@jcrosoft.com>
@ 2011-07-14 23:52 ` Jean-Christophe PLAGNIOL-VILLARD
[not found] ` <1310687525-22486-2-git-send-email-plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-07-14 23:52 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Nicolas Ferre, Jean-Christophe PLAGNIOL-VILLARD, linux-i2c
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: linux-i2c@vger.kernel.org
---
drivers/i2c/busses/i2c-at91.c | 3 ++-
.../at91_twi.h => drivers/i2c/busses/i2c-at91.h | 7 +++----
2 files changed, 5 insertions(+), 5 deletions(-)
rename arch/arm/mach-at91/include/mach/at91_twi.h => drivers/i2c/busses/i2c-at91.h (97%)
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c
index 305c075..7402fed 100644
--- a/drivers/i2c/busses/i2c-at91.c
+++ b/drivers/i2c/busses/i2c-at91.c
@@ -25,10 +25,11 @@
#include <linux/platform_device.h>
#include <linux/io.h>
-#include <mach/at91_twi.h>
#include <mach/board.h>
#include <mach/cpu.h>
+#include "i2c_at91.h"
+
#define TWI_CLOCK 100000 /* Hz. max 400 Kbits/sec */
diff --git a/arch/arm/mach-at91/include/mach/at91_twi.h b/drivers/i2c/busses/i2c-at91.h
similarity index 97%
rename from arch/arm/mach-at91/include/mach/at91_twi.h
rename to drivers/i2c/busses/i2c-at91.h
index bb2880f..0f33ec7 100644
--- a/arch/arm/mach-at91/include/mach/at91_twi.h
+++ b/drivers/i2c/busses/i2c-at91.h
@@ -1,5 +1,5 @@
/*
- * arch/arm/mach-at91/include/mach/at91_twi.h
+ * drivers/i2c/busses/i2c-at91.h
*
* Copyright (C) 2005 Ivan Kokshaysky
* Copyright (C) SAN People
@@ -13,8 +13,8 @@
* (at your option) any later version.
*/
-#ifndef AT91_TWI_H
-#define AT91_TWI_H
+#ifndef I2C_AT91_H
+#define I2C_AT91_H
#define AT91_TWI_CR 0x00 /* Control Register */
#define AT91_TWI_START (1 << 0) /* Send a Start Condition */
@@ -65,4 +65,3 @@
#define AT91_TWI_THR 0x34 /* Transmit Holding Register */
#endif
-
--
1.7.5.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/7] at91/i2c: move register header to drivers
[not found] ` <1310687525-22486-2-git-send-email-plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org>
@ 2011-07-15 7:23 ` Jean Delvare
[not found] ` <20110715092314.215043d5-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Jean Delvare @ 2011-07-15 7:23 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Nicolas Ferre,
linux-i2c-u79uwXL29TY76Z2rM5mHXA
Hi Jean-Christophe,
On Fri, 15 Jul 2011 01:52:00 +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org>
> Cc: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
> Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> ---
> drivers/i2c/busses/i2c-at91.c | 3 ++-
> .../at91_twi.h => drivers/i2c/busses/i2c-at91.h | 7 +++----
> 2 files changed, 5 insertions(+), 5 deletions(-)
> rename arch/arm/mach-at91/include/mach/at91_twi.h => drivers/i2c/busses/i2c-at91.h (97%)
Why don't you just merge i2c-at91.h into i2c-at91.c then, if it's the
only user?
--
Jean Delvare
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/7] at91/i2c: move register header to drivers
[not found] ` <20110715092314.215043d5-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
@ 2011-07-15 15:49 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-07-15 15:49 UTC (permalink / raw)
To: Jean Delvare
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Nicolas Ferre,
linux-i2c-u79uwXL29TY76Z2rM5mHXA
On 09:23 Fri 15 Jul , Jean Delvare wrote:
> Hi Jean-Christophe,
>
> On Fri, 15 Jul 2011 01:52:00 +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org>
> > Cc: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
> > Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> > ---
> > drivers/i2c/busses/i2c-at91.c | 3 ++-
> > .../at91_twi.h => drivers/i2c/busses/i2c-at91.h | 7 +++----
> > 2 files changed, 5 insertions(+), 5 deletions(-)
> > rename arch/arm/mach-at91/include/mach/at91_twi.h => drivers/i2c/busses/i2c-at91.h (97%)
>
> Why don't you just merge i2c-at91.h into i2c-at91.c then, if it's the
> only user?
I prefer to keep the define in a seperate file
Best Regards,
J.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-15 15:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1310687525-22486-1-git-send-email-plagnioj@jcrosoft.com>
2011-07-14 23:52 ` [PATCH 2/7] at91/i2c: move register header to drivers Jean-Christophe PLAGNIOL-VILLARD
[not found] ` <1310687525-22486-2-git-send-email-plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org>
2011-07-15 7:23 ` Jean Delvare
[not found] ` <20110715092314.215043d5-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-07-15 15:49 ` Jean-Christophe PLAGNIOL-VILLARD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox