From: Ben Hutchings Date: Mon, 13 Apr 2009 15:02:14 +0000 (+0200) Subject: i2c: Fix sparse warnings for I2C_BOARD_INFO() X-Git-Tag: v2.6.30-rc2~78^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c758e8cffe3b1bc7970d579371db01b19ff440bf;p=pandora-kernel.git i2c: Fix sparse warnings for I2C_BOARD_INFO() Since the first argument to I2C_BOARD_INFO() must be a string constant, there is no need to parenthesise it, and adding parentheses results in an invalid initialiser for char[]. gcc obviously accepts this syntax as an extension, but sparse complains, e.g.: drivers/net/sfc/boards.c:173:2: warning: array initialized from parenthesized string constant Therefore, remove the parentheses. Signed-off-by: Ben Hutchings Signed-off-by: Jean Delvare --- Reading git-diff-tree failed