From: Stephen Rothwell Date: Wed, 2 May 2012 20:19:43 +0000 (+0000) Subject: powerpc/windfarm: don't pass const strings to snprintf X-Git-Tag: v3.5-rc1~132^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43671cc96e58458b2711f1e97ff24a4c0e7cd1ac;p=pandora-kernel.git powerpc/windfarm: don't pass const strings to snprintf Fixes these build warnings: drivers/macintosh/windfarm_smu_sat.c: In function 'wf_sat_probe': drivers/macintosh/windfarm_smu_sat.c:290:3: warning: passing argument 1 of 'snprintf' discards qualifiers from pointer target type include/linux/kernel.h:323:5: note: expected 'char *' but argument is of type 'const char *' drivers/macintosh/windfarm_smu_sat.c:317:3: warning: passing argument 1 of 'snprintf' discards qualifiers from pointer target type include/linux/kernel.h:323:5: note: expected 'char *' but argument is of type 'const char *' Introduced by commit e074d08e2b98 ("powerpc/windfarm: const'ify and add "priv" field to controls & sensors"). Signed-off-by: Stephen Rothwell Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed