pinctrl: single: check "register-width" DT property
authorDario Binacchi <dariobin@libero.it>
Sun, 11 Apr 2021 07:39:44 +0000 (09:39 +0200)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 12 Apr 2021 05:47:15 +0000 (11:17 +0530)
commit971c64a452f6220f3a9c5f9fc77c4cb1928c38e4
tree99b9ede50388eac5c31a9c4f35a8917a1e8637b3
parent9fd8a430f33f1a412a43c12a8b83e19ed91a16fd
pinctrl: single: check "register-width" DT property

In more recent versions of the Linux kernel the driver's probe function
returns an error if the "pinctrl-single,register-width" DT property is
missing. The lack of this information, in fact, does not allow to know
whether to access the registers of the controller at 8, 16, ... bits.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pinctrl/pinctrl-single.c