pinctrl: sh-pfc: Return pinconf with arguments in packed format
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 6 Sep 2016 15:14:14 +0000 (17:14 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 12 Sep 2016 08:58:23 +0000 (10:58 +0200)
commit40ade582194668aa4336a30f96c9d592c46a1928
treeb8c9aec6edced88f3e7bbcecfe9a7441ba9f7971
parentc30716894e96ed1e76bf32ae68c5438350700496
pinctrl: sh-pfc: Return pinconf with arguments in packed format

The pinconf-generic code expects configurations with arguments to be
returned in a packed format in order to be displayed properly by
pinconf_generic_dump_one().

Reading /sys/kernel/debug/pinctrl/e6060000.pfc/pinconf-pins on
r8a7795/salvator-x now shows:

    pin 101 (GP_3_5): output drive strength (9 mA), pin power source (3300 selector)

Instead of:

    pin 101 (GP_3_5): output drive strength (0 mA), pin power source (0 selector)

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/sh-pfc/pinctrl.c