[POWERPC] Fix i2c device string format
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 15 Aug 2007 19:15:03 +0000 (05:15 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 17 Aug 2007 01:02:06 +0000 (11:02 +1000)
commite78bb5dc2e0515dce2ac2c590d66405028b7ccd6
tree1ffd3fcfec0cd2bc36398f8052900fca851b30b9
parent750d1d1ca1d2e94e15393927fd3c30222d1c5203
[POWERPC] Fix i2c device string format

Use strlcpy() to guarantee strings in i2c device type and driver_name
fields are 0-terminated.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/fsl_soc.c