forked from Minki/linux
9afec493e2
Instead of using magic pairs of req/reg, replace them by the defined values. This patch were generated by the following script: cat tm6000-regs.h |perl -ne 'if (m/(TM6010_REQ[^\s]+)\s+0x([a-f0-9]+)\, 0x([a-f0-9]+)/) { $name="$1"; $req=$2; $val=$3; printf "s/REQ_${req}_SET_GET_AVREG[_BIT]*, 0x[0]*$3,/$1,/\n" }' >a; for i in tm*.c; do sed -f a $i >b && mv b $i; done Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
README | ||
tm6000-alsa.c | ||
tm6000-cards.c | ||
tm6000-core.c | ||
tm6000-dvb.c | ||
tm6000-i2c.c | ||
tm6000-regs.h | ||
tm6000-stds.c | ||
tm6000-usb-isoc.h | ||
tm6000-video.c | ||
tm6000.h |
Todo: - checkpatch.pl cleanups - sparse cleanups - convert to new i2c approach - better support DVB - fix reading from i2c, if possible - fix loosing frames - fix oops? Please send patches to linux-media@vger.kernel.org