summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2010-11-07 15:53:44 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 10:16:45 (GMT)
commit7bd444ede7285cad4ed5047ff954432325fe7f95 (patch)
treecec812f2174cc690d0238a617e882ab653517aeb /arch
parent8ea43d0a2f87b8460f46ddb7b42b5eb17c5385d2 (diff)
downloadlinux-7bd444ede7285cad4ed5047ff954432325fe7f95.tar.xz
[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 <khali@linux-fr.org> Cc: Michel Ludwig <michel.ludwig@gmail.com> Cc: Stefan Ringel <stefan.ringel@arcor.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions