* [ANNOUNCE] dspbridge: kill camelcase
@ 2010-02-24 2:14 Omar Ramirez Luna
2010-02-24 3:13 ` Tony Lindgren
0 siblings, 1 reply; 4+ messages in thread
From: Omar Ramirez Luna @ 2010-02-24 2:14 UTC (permalink / raw)
To: linux-omap@vger.kernel.org
Hi All,
I'm currently working on removing camel case + hungarian notation from
dspbridge code in the following branch:
dspbridge-next-camelcase on d.o-z
I'll appreciate if you can mail any unsent patch otherwise it will need
to wait (and be rebased) after the camelcase changes.
If nobody disagrees I'll be marking dspbridge 0.2 (as per private
discussion) in the upcoming days.
Thanks,
Omar
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ANNOUNCE] dspbridge: kill camelcase
2010-02-24 2:14 [ANNOUNCE] dspbridge: kill camelcase Omar Ramirez Luna
@ 2010-02-24 3:13 ` Tony Lindgren
2010-02-24 7:38 ` Menon, Nishanth
0 siblings, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2010-02-24 3:13 UTC (permalink / raw)
To: Omar Ramirez Luna; +Cc: linux-omap@vger.kernel.org
* Omar Ramirez Luna <omar.ramirez@ti.com> [100223 18:11]:
>
> Hi All,
>
> I'm currently working on removing camel case + hungarian notation
> from dspbridge code in the following branch:
>
> dspbridge-next-camelcase on d.o-z
>
> I'll appreciate if you can mail any unsent patch otherwise it will
> need to wait (and be rebased) after the camelcase changes.
>
> If nobody disagrees I'll be marking dspbridge 0.2 (as per private
> discussion) in the upcoming days.
Maybe do a perl or sed script that allows you to convert one
string at a time? That way you can regenerate the patches as
needed.
We used something like that to convert the musb code a few
years ago.
I recommend converting one variable at a time and then compile
and boot test in between. Otherwise you can easily convert
substrings accidentally and then things will not compile..
Regards,
Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ANNOUNCE] dspbridge: kill camelcase
2010-02-24 3:13 ` Tony Lindgren
@ 2010-02-24 7:38 ` Menon, Nishanth
2010-02-24 17:02 ` Omar Ramirez Luna
0 siblings, 1 reply; 4+ messages in thread
From: Menon, Nishanth @ 2010-02-24 7:38 UTC (permalink / raw)
To: Tony Lindgren; +Cc: Ramirez Luna, Omar, linux-omap@vger.kernel.org
Tony Lindgren said the following on 02/24/2010 05:13 AM:
> * Omar Ramirez Luna <omar.ramirez@ti.com> [100223 18:11]:
>> Hi All,
>>
>> I'm currently working on removing camel case + hungarian notation
>> from dspbridge code in the following branch:
>>
>> dspbridge-next-camelcase on d.o-z
>>
>> I'll appreciate if you can mail any unsent patch otherwise it will
>> need to wait (and be rebased) after the camelcase changes.
>>
>> If nobody disagrees I'll be marking dspbridge 0.2 (as per private
>> discussion) in the upcoming days.
>
> Maybe do a perl or sed script that allows you to convert one
> string at a time? That way you can regenerate the patches as
> needed.
>
> We used something like that to convert the musb code a few
> years ago.
>
> I recommend converting one variable at a time and then compile
> and boot test in between. Otherwise you can easily convert
> substrings accidentally and then things will not compile..
I think we discussed this quiet some time back:
http://marc.info/?t=125319739500001&r=1&w=2 - yep there is script
available.
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ANNOUNCE] dspbridge: kill camelcase
2010-02-24 7:38 ` Menon, Nishanth
@ 2010-02-24 17:02 ` Omar Ramirez Luna
0 siblings, 0 replies; 4+ messages in thread
From: Omar Ramirez Luna @ 2010-02-24 17:02 UTC (permalink / raw)
To: Menon, Nishanth; +Cc: Tony Lindgren, linux-omap@vger.kernel.org
Hi,
On 2/24/2010 1:38 AM, Menon, Nishanth wrote:
> Tony Lindgren said the following on 02/24/2010 05:13 AM:
>> * Omar Ramirez Luna<omar.ramirez@ti.com> [100223 18:11]:
>>> Hi All,
>>>
>>> I'm currently working on removing camel case + hungarian notation
>>> from dspbridge code in the following branch:
>>>
>>> dspbridge-next-camelcase on d.o-z
>>>
>>> I'll appreciate if you can mail any unsent patch otherwise it will
>>> need to wait (and be rebased) after the camelcase changes.
>>>
>>> If nobody disagrees I'll be marking dspbridge 0.2 (as per private
>>> discussion) in the upcoming days.
>>
>> Maybe do a perl or sed script that allows you to convert one
>> string at a time? That way you can regenerate the patches as
>> needed.
>>
>> We used something like that to convert the musb code a few
>> years ago.
>>
>> I recommend converting one variable at a time and then compile
>> and boot test in between. Otherwise you can easily convert
>> substrings accidentally and then things will not compile..
>
> I think we discussed this quiet some time back:
> http://marc.info/?t=125319739500001&r=1&w=2 - yep there is script
> available.
>
Tony,
Yes, it is not a bad idea to generate single patches, probably I can
create another branch if needed for each change, in my laziness I
decided to replace safe stuff in one shot.
Nishanth,
I have been playing with the script, which is great to parse the tags
file and create the new tokens, but not so hot for replacing stuff.
If you have time, you can criticize my rationale ;)
http://dev.omapzoom.org/?p=tidspbridge/kernel-dspbridge.git;a=commit;h=7c0065d4219b7b4ba15709870ef9fb819f7e71c8
All,
As of know, with the safe symbols (this means symbols are not duplicated
in bridge code), I had to fix:
dspbridge: conflicting types for 'mem_init'
dspbridge: variable or field 'nop' declared void
dspbridge: conflicting types for 'clk_init'
dspbridge: conflicting types for 'io_schedule'
dspbridge: conflicting types for 'find_symbol'
These are duplicated on kernel sources so renamed:
mem_init ==> services_mem_init
clk_init ==> services_clk_init
io_schedule ==> iosm_schedule
find_symbol ==> dbll_find_symbol
Right now count stands:
151 files changed, 12579 insertions(+), 12579 deletions(-)
I'll now proceed to rename the symbols classified as "dangerous",
because might get duplicated with new replacements.
Thanks,
- omar
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-24 17:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24 2:14 [ANNOUNCE] dspbridge: kill camelcase Omar Ramirez Luna
2010-02-24 3:13 ` Tony Lindgren
2010-02-24 7:38 ` Menon, Nishanth
2010-02-24 17:02 ` Omar Ramirez Luna
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox