greybus: connection: replace custom error function with dev_err
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 19 Mar 2015 15:46:17 +0000 (16:46 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 19 Mar 2015 16:28:19 +0000 (17:28 +0100)
commit25eb732954ee656edd92770f498d28f87086511b
treef7a705648d1145192123a61d049440c055dbfa89
parentfe4c0e548aea5f4bc2df967db69d7d0b509327ef
greybus: connection: replace custom error function with dev_err

Remove custom connection error function and replace it with dev_err.

The standard error function provides more information in the message
prefix (e.g. includes the interface id), has a well-known semantics
(e.g. does does not add newlines to messages), and is even somewhat
shorter to type.

Note that some uses of the custom function were already adding double
newlines due to the non-standard semantics.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h
drivers/staging/greybus/i2c.c
drivers/staging/greybus/operation.c
drivers/staging/greybus/spi.c