From: Jean Delvare Date: Sun, 7 Nov 2010 15:53:44 +0000 (-0300) Subject: [media] TM6000: Clean-up i2c initialization X-Git-Tag: v2.6.38-rc1~470^2~177 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bd444ede7285cad4ed5047ff954432325fe7f95;p=pandora-kernel.git [media] TM6000: Clean-up i2c initialization Usage of templates for large structures is a bad idea, as it wastes a lot of space. Manually initializing the few fields we need is way more efficient. Also set the algorithm data const, use strlcpy instead of strcpy, fix a small race (device data must always be set before registering said device) and properly return error on adapter registration failure. Signed-off-by: Jean Delvare Cc: Michel Ludwig Cc: Stefan Ringel Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed