From: Troy Kisky Date: Tue, 16 Aug 2011 19:19:58 +0000 (-0700) Subject: ARM: i.MX51: clean up iomux-mx51.h X-Git-Tag: v3.2-rc1~98^2~14^4~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=315046d017d9b55cf1bdeee8c33594d508a14716;p=pandora-kernel.git ARM: i.MX51: clean up iomux-mx51.h Delete about 700 used only once symbols. I used the following script to clean up the file, iomux-mx51.h. cp iomux-mx51.h iomux-mx51.h.cpy sed -n iomux-mx51.h.cpy \ -e 's/#define[ \x09]\+\(_MX5[0-9a-zA-Z_]*\)[ \x09]\+\(.\+\)/s@\1@\2@g/p' >t.tmp sed iomux-mx51.h.cpy \ -e '/define[ \x09]\+_MX5/d' \ -f t.tmp \ -e 's/,[ \x09]*\([^,]\+\)/, \1/g' \ -e 's/, 0)[ \x09]*|[ \x09]*MUX_PAD_CTRL(/, /' \ -e 's/(IOMUX_PAD(\(.*\)))/IOMUX_PAD(\1)/' \ -e 's/0x\([0-9a-fA-F]\{2\}\)[ \x09]*,/0x0\1,/' \ -e 's/0x0\([0-9a-fA-F]\{3\}\)[ \x09]*,/0x\1,/' \ -e '/#include iomux-mx51.h Signed-off-by: Troy Kisky Signed-off-by: Sascha Hauer --- Reading git-diff-tree failed