The patch number 8056 was added via Mauro Carvalho Chehab <[EMAIL PROTECTED]> to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward compatible with older kernels. Compatibility modifications will be removed before inclusion into the mainstream Kernel If anyone has any objections, please let us know by sending a message to: [EMAIL PROTECTED] ------ From: Mauro Carvalho Chehab <[EMAIL PROTECTED]> v4l-board-dbg: Some cleanups Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]> --- v4l2-apps/util/v4l-board-dbg.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff -r a2cbb6ac15cd -r ef88a701e2a1 v4l2-apps/util/v4l-board-dbg.c --- a/v4l2-apps/util/v4l-board-dbg.c Mon Jun 16 17:41:25 2008 -0300 +++ b/v4l2-apps/util/v4l-board-dbg.c Mon Jun 16 17:53:05 2008 -0300 @@ -43,7 +43,7 @@ struct board_list boards[] = { struct board_list boards[] = { [0] = { /* From bttv-dbg.h */ .name = BTTV_IDENT, - .prefix = sizeof (BTTV_PREFIX), + .prefix = sizeof(BTTV_PREFIX) - 1, .regs = bt8xx_regs, .regs_size = ARRAY_SIZE(bt8xx_regs), .alt_regs = bt8xx_regs_other, @@ -51,7 +51,7 @@ struct board_list boards[] = { }, [1] = { /* From saa7134-dbg.h */ .name = SAA7134_IDENT, - .prefix = sizeof (SAA7134_PREFIX), + .prefix = sizeof(SAA7134_PREFIX) - 1, .regs = saa7134_regs, .regs_size = ARRAY_SIZE(saa7134_regs), .alt_regs = NULL, @@ -127,10 +127,6 @@ int main(int argc, char **argv) {0, 0, 0, 0} }; - /* FIXME: need to check for 'board' */ -board=1; - curr_bd = &boards[board]; - /* command args */ if (argc == 1) { usage(); @@ -193,6 +189,8 @@ board=1; exit(3); } + curr_bd = &boards[board]; + reg.match_type = V4L2_CHIP_MATCH_HOST; reg.match_chip = 0; @@ -238,7 +236,6 @@ board=1; return -1; } - for (i = curr_bd->regs_size - 1; i >=0 ; i--) { if (!strcasecmp(reg_name, curr_bd->regs[i].name)) { bd_reg = &curr_bd->regs[i]; @@ -281,7 +278,6 @@ board=1; } } - if (i < 0) { printf("Register not found\n"); return -1; --- Patch is available at: http://linuxtv.org/hg/v4l-dvb/rev/ef88a701e2a1d3e7ec576201f702d05c08986bb3 _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits