linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] I2C:Moving Register Defines to Header File
       [not found] ` <52671.192.168.10.89.1242133785.squirrel-pJFUjGLopx31T2qfsofKZtBPR1lH4CV8@public.gmane.org>
@ 2009-05-12 13:13   ` Felipe Balbi
  2009-05-12 15:01   ` Kevin Hilman
  1 sibling, 0 replies; 6+ messages in thread
From: Felipe Balbi @ 2009-05-12 13:13 UTC (permalink / raw)
  To: ext Syed Rafiuddin
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	ben-linux-elnMNo+KYs3YtjvyW6yDsg,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA

On Tue, May 12, 2009 at 03:09:45PM +0200, ext Syed Rafiuddin wrote:
> This patch creates i2c-omap.h header and moves register and bit definition
> macros to it from i2c-omap.c
> 
> Signed-off-by: Syed Rafiuddin <rafiuddin.syed-l0cyMroinI0@public.gmane.org>
> Acked-by: Santosh Shilimkar <santosh.shilimkar-l0cyMroinI0@public.gmane.org>

Any special need for that ? will those registers be accessed outside
i2c-omap.c ?? If not, I'd rather keep them in the c file.

BTW, this should go straight to Ben Dooks and i2c@vger. Adding them to
cc.

-- 
balbi

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

* Re: [PATCH] I2C:Moving Register Defines to Header File
       [not found] ` <52671.192.168.10.89.1242133785.squirrel-pJFUjGLopx31T2qfsofKZtBPR1lH4CV8@public.gmane.org>
  2009-05-12 13:13   ` [PATCH] I2C:Moving Register Defines to Header File Felipe Balbi
@ 2009-05-12 15:01   ` Kevin Hilman
       [not found]     ` <87hbzqe55y.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Kevin Hilman @ 2009-05-12 15:01 UTC (permalink / raw)
  To: Syed Rafiuddin
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA,
	ben-linux-elnMNo+KYs3YtjvyW6yDsg,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA

"Syed Rafiuddin" <rafiuddin.syed-l0cyMroinI0@public.gmane.org> writes:

> This patch creates i2c-omap.h header and moves register and bit definition
> macros to it from i2c-omap.c

Please use the description to describe the motivation for the changes
and the problems it is addressing/fixing. 

In other words, you described what your patch does but not why.

Kevin

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

* Re: [PATCH] I2C:Moving Register Defines to Header File
       [not found]     ` <87hbzqe55y.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
@ 2009-05-13  8:26       ` Syed Rafiuddin
       [not found]         ` <57428.192.168.10.89.1242203177.squirrel-pJFUjGLopx31T2qfsofKZtBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Syed Rafiuddin @ 2009-05-13  8:26 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA,
	ben-linux-elnMNo+KYs3YtjvyW6yDsg,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA

> "Syed Rafiuddin" <rafiuddin.syed-l0cyMroinI0@public.gmane.org> writes:
>
>> This patch creates i2c-omap.h header and moves register and bit definition
>> macros to it from i2c-omap.c
>
> Please use the description to describe the motivation for the changes
> and the problems it is addressing/fixing.
>
> In other words, you described what your patch does but not why.

The intention of the patch is to have a separate header which will have omap3
and omap4 related register definitions. As omap4 has different offset addresses
with respect to omap3,adding omap4 related stuff in the same file will leave
the file look ugly.

-Syed Rafiuddin

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

* Re: [PATCH] I2C:Moving Register Defines to Header File
       [not found]         ` <57428.192.168.10.89.1242203177.squirrel-pJFUjGLopx31T2qfsofKZtBPR1lH4CV8@public.gmane.org>
@ 2009-05-13 13:23           ` Kevin Hilman
       [not found]             ` <87octx9lxn.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Kevin Hilman @ 2009-05-13 13:23 UTC (permalink / raw)
  To: Syed Rafiuddin
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA,
	ben-linux-elnMNo+KYs3YtjvyW6yDsg,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA

"Syed Rafiuddin" <rafiuddin.syed-l0cyMroinI0@public.gmane.org> writes:

>> "Syed Rafiuddin" <rafiuddin.syed-l0cyMroinI0@public.gmane.org> writes:
>>
>>> This patch creates i2c-omap.h header and moves register and bit definition
>>> macros to it from i2c-omap.c
>>
>> Please use the description to describe the motivation for the changes
>> and the problems it is addressing/fixing.
>>
>> In other words, you described what your patch does but not why.
>
> The intention of the patch is to have a separate header which will have omap3
> and omap4 related register definitions. As omap4 has different offset addresses
> with respect to omap3,adding omap4 related stuff in the same file will leave
> the file look ugly.

IMO, The regs do not need to move to a separate header unless they will
be used outside of i2c-omap.c.

Kevin

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

* Re: [PATCH] I2C:Moving Register Defines to Header File
       [not found]             ` <87octx9lxn.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
@ 2009-05-14 10:34               ` Jagadeesh Bhaskar Pakaravoor
  2009-05-14 20:40                 ` Tony Lindgren
  0 siblings, 1 reply; 6+ messages in thread
From: Jagadeesh Bhaskar Pakaravoor @ 2009-05-14 10:34 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Syed Rafiuddin, linux-omap-u79uwXL29TY76Z2rM5mHXA,
	ben-linux-elnMNo+KYs3YtjvyW6yDsg,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA

> IMO, The regs do not need to move to a separate header unless they will
> be used outside of i2c-omap.c.
>
Would it not be cleaner to move them to a separate header file,
especially considering the fact that we have some 19 registers for
OMAP3 I2C and when we redefine them for OMAP4, there would be 38
(infact 40, including the two new registers) lines of just register
definitions at the top of the file?

--
Jagadeesh

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

* Re: [PATCH] I2C:Moving Register Defines to Header File
  2009-05-14 10:34               ` Jagadeesh Bhaskar Pakaravoor
@ 2009-05-14 20:40                 ` Tony Lindgren
  0 siblings, 0 replies; 6+ messages in thread
From: Tony Lindgren @ 2009-05-14 20:40 UTC (permalink / raw)
  To: Jagadeesh Bhaskar Pakaravoor
  Cc: Kevin Hilman, Syed Rafiuddin, linux-omap, ben-linux, linux-i2c

* Jagadeesh Bhaskar Pakaravoor <jagadeeshbp@gmail.com> [090514 03:34]:
> > IMO, The regs do not need to move to a separate header unless they will
> > be used outside of i2c-omap.c.
> >
> Would it not be cleaner to move them to a separate header file,
> especially considering the fact that we have some 19 registers for
> OMAP3 I2C and when we redefine them for OMAP4, there would be 38
> (infact 40, including the two new registers) lines of just register
> definitions at the top of the file?

I agree with Kevin, unless the defines are used in other files there
should not be need for having a separate header file.

Tony

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

end of thread, other threads:[~2009-05-14 20:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <52671.192.168.10.89.1242133785.squirrel@dbdmail.itg.ti.com>
     [not found] ` <52671.192.168.10.89.1242133785.squirrel-pJFUjGLopx31T2qfsofKZtBPR1lH4CV8@public.gmane.org>
2009-05-12 13:13   ` [PATCH] I2C:Moving Register Defines to Header File Felipe Balbi
2009-05-12 15:01   ` Kevin Hilman
     [not found]     ` <87hbzqe55y.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
2009-05-13  8:26       ` Syed Rafiuddin
     [not found]         ` <57428.192.168.10.89.1242203177.squirrel-pJFUjGLopx31T2qfsofKZtBPR1lH4CV8@public.gmane.org>
2009-05-13 13:23           ` Kevin Hilman
     [not found]             ` <87octx9lxn.fsf-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
2009-05-14 10:34               ` Jagadeesh Bhaskar Pakaravoor
2009-05-14 20:40                 ` Tony Lindgren

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).