OSDN Git Service

pinctrl: pinconf-generic: Add flag to print arguments
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Thu, 16 Oct 2014 17:11:29 +0000 (10:11 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Oct 2014 15:59:31 +0000 (16:59 +0100)
commiteec450713e5c5cafa9b8565c84548580080b1f64
treebce0c8ec02794bc71cd863db34bc44788908a831
parentc61c2d7071d865adc3bbd92dee670bcf7bf56099
pinctrl: pinconf-generic: Add flag to print arguments

When dumping pinconf information in debugfs, config arguments are only
printed when a unit is present and the argument is != 0. For parameters
like the slew rate, this does not work. The slew rate uses a driver
specific format for the argument, i.e. 0 can be a valid argument and a
unit is not provided for it.
For that reason, add a flag to enable printing the argument instead of
inferring it from the presence of a unit and the value of the argument.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinconf-generic.c