Re: [U-Boot] [PATCH 8/8] arm: socfpga: Make the pinmux table const u8

2015-08-19 Thread Marek Vasut
On Wednesday, August 19, 2015 at 12:14:21 PM, Jian.Luo4 wrote: > Hi Marek, Hi, > the last sed line is invalid for my GNU sed 4.2.2. > Maybe missed a semicolon? > > sed -n '/^unsigned/ !b; :next {/^unsigned/ {s/\[.*\]/[]/;s/unsigned > long/const u8/};p;n;b next}' \ #

Re: [U-Boot] [PATCH 8/8] arm: socfpga: Make the pinmux table const u8

2015-08-19 Thread Jian . Luo4
Hi Marek, the last sed line is invalid for my GNU sed 4.2.2. Maybe missed a semicolon? sed -n '/^unsigned/ !b; :next {/^unsigned/ {s/\[.*\]/[]/;s/unsigned long/const u8/};p;n;b next}' \ # ^here Best regards, *Jian Luo DC-IA/EAH2* Tel. +4

Re: [U-Boot] [PATCH 8/8] arm: socfpga: Make the pinmux table const u8

2015-08-18 Thread Marek Vasut
On Wednesday, August 19, 2015 at 05:09:23 AM, Dinh Nguyen wrote: > On 8/10/15 6:10 PM, Marek Vasut wrote: > > Now that we're actually converting the QTS-generated header files, > > we can even adjust their data types. A good candidate for this is > > the pinmux table, where each entry can have valu

Re: [U-Boot] [PATCH 8/8] arm: socfpga: Make the pinmux table const u8

2015-08-18 Thread Dinh Nguyen
On 8/10/15 6:10 PM, Marek Vasut wrote: > Now that we're actually converting the QTS-generated header files, > we can even adjust their data types. A good candidate for this is > the pinmux table, where each entry can have value in the range of > 0..3, but each element is declared as unsigned long