]> git.baikalelectronics.ru Git - kernel.git/commit
spi: fixed odd static string conventions in core code
authorLinus Walleij <linus.walleij@stericsson.com>
Thu, 21 Oct 2010 19:06:44 +0000 (21:06 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 22 Oct 2010 15:51:05 +0000 (09:51 -0600)
commit75c33ed3cd08c5cb8c5a8ea6261e82c3e6e3e19d
treef43886e9b374065dd29d930116f58d5ef47524fc
parentf729cf0d4f982f93a8d81789ca00e56b0640562b
spi: fixed odd static string conventions in core code

This patch removes convention of passing a static string as a
parameter to another static string.  The convention is intended to
reduce text usage by sharing the common bits of the string, but the
implementation is inherently fragile (a change to one format string
but not the other will nullify any possible advantage), it isn't
necessarily a net win depending on what this compiler does, and it
it reduces code readability.

Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
[grant.likely@secretlab.ca: removed dev_dbg->dev_err hunk]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi.c