gpiolib: Provide helper macros for logging of GPIO events
authorMark Brown <broonie@linaro.org>
Mon, 9 Sep 2013 09:33:49 +0000 (10:33 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 19 Sep 2013 12:48:40 +0000 (14:48 +0200)
commit6424de5af1942e33ce0267cbfe9ff12e387d93d6
tree05756789b41c27fed4c53b25a153c6b531c140bf
parentc27769ef6e118d355922d9c4a530b9d68405b39b
gpiolib: Provide helper macros for logging of GPIO events

Currently many but not all GPIO log messages log the GPIO number and the
formats vary. Ensure that this is done consistently by defining logging
helpers which take the GPIO descriptor.

The will help people pattern matching on logs and providing the number
makes the log messages that omitted it more useful.

Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c