]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: aspeed: Add implementation-related documentation
authorAndrew Jeffery <andrew@aj.id.au>
Fri, 28 Jun 2019 02:38:38 +0000 (12:08 +0930)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 3 Jul 2019 08:38:58 +0000 (10:38 +0200)
commit1bbe61d892fb63ba8d793d4418606a092a7b71cf
treeb286da459b3b583f839a5680ee091d6e54ad8d10
parentefa5623981b72f6b5f95933d1c36ed2518c2ee4e
pinctrl: aspeed: Add implementation-related documentation

The ASPEED pinctrl driver implementations make heavy use of macros to
minimise tedium of implementation and maximise the chance that the
compiler will catch errors in defining signal and pin configurations.
While the goal of minimising errors is achieved, it is at the cost of
the complexity of the macros.

Document examples of the expanded form of pin declarations to
demonstrate the operation of the macros.

Cc: Johnny Huang <johnny_huang@aspeedtech.com>
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20190628023838.15426-9-andrew@aj.id.au
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/aspeed/pinmux-aspeed.h