Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: mvebu: remove MPP_REG_CTRL macro

Now that each per-SoC pinctrl driver must implement its own get/set
functions, there is no point in keeping the MPP_REG_CTRL macro, whose
purpose was to let the core pinctrl mvebu driver use default get/set
functions. While at it also update the comment about mvebu_mpp_ctrl.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>

authored by

Thomas Petazzoni and committed by
Sebastian Hesselbarth
cffa7a6b faaa8325

+3 -16
+3 -16
drivers/pinctrl/mvebu/pinctrl-mvebu.h
··· 28 28 * between two or more different settings, e.g. assign mpp pin 13 to 29 29 * uart1 or sata. 30 30 * 31 - * If optional mpp_get/_set functions are set these are used to get/set 32 - * a specific mode. Otherwise it is assumed that the mpp control is based 33 - * on 4-bit groups in subsequent registers. The optional mpp_gpio_req/_dir 34 - * functions can be used to allow pin settings with varying gpio pins. 31 + * The mpp_get/_set functions are mandatory and are used to get/set a 32 + * specific mode. The optional mpp_gpio_req/_dir functions can be used 33 + * to allow pin settings with varying gpio pins. 35 34 */ 36 35 struct mvebu_mpp_ctrl { 37 36 const char *name; ··· 112 113 struct pinctrl_gpio_range *gpioranges; 113 114 int ngpioranges; 114 115 }; 115 - 116 - #define MPP_REG_CTRL(_idl, _idh) \ 117 - { \ 118 - .name = NULL, \ 119 - .pid = _idl, \ 120 - .npins = _idh - _idl + 1, \ 121 - .pins = (unsigned[_idh - _idl + 1]) { }, \ 122 - .mpp_get = NULL, \ 123 - .mpp_set = NULL, \ 124 - .mpp_gpio_req = NULL, \ 125 - .mpp_gpio_dir = NULL, \ 126 - } 127 116 128 117 #define MPP_FUNC_CTRL(_idl, _idh, _name, _func) \ 129 118 { \