pinctrl: sh-pfc: checker: Improve pin checks
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 10 Jan 2020 13:19:20 +0000 (14:19 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 21 Feb 2020 12:57:44 +0000 (13:57 +0100)
commit4ef30dc72d0a3b3087078379b8e6d666a3c24270
tree2234dfede485b5076f590ebd404a111b996199ec
parent12d057bad683b1c60476681ecc835c858018df60
pinctrl: sh-pfc: checker: Improve pin checks

Improve the checks for pin descriptors:
  1. Introduce local variables for the current pin, to make the checks
     easier to read,
  2. Pins must have a name,
  3. Fix double printing of identical pin names.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/20200110131927.1029-7-geert+renesas@glider.be
drivers/pinctrl/sh-pfc/core.c