summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-04-13 17:02:14 +0200
committerJean Delvare <khali@linux-fr.org>2009-04-13 17:02:14 +0200
commitc758e8cffe3b1bc7970d579371db01b19ff440bf (patch)
tree12ebe93ed86da0f906ed49e10198ee3db6158c8c /drivers
parent3f307fb37a6dd65b7eabda9c6208a9bd161dc16e (diff)
downloadlinux-stable-c758e8cffe3b1bc7970d579371db01b19ff440bf.tar.gz
linux-stable-c758e8cffe3b1bc7970d579371db01b19ff440bf.tar.bz2
linux-stable-c758e8cffe3b1bc7970d579371db01b19ff440bf.zip
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 <bhutchings@solarflare.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions