pinctrl: mediatek: data struct optimize and remove unused member
authorYingjoe Chen <yingjoe.chen@mediatek.com>
Tue, 19 May 2015 06:11:14 +0000 (23:11 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 19 May 2015 09:12:54 +0000 (11:12 +0200)
commit4b9b5268460cbc85270b309559b8f3f48295709a
tree4f819ed9b90201b56fe95f12368f518f2342e3b8
parent0dcdbd2b66704509a1e20b1545c936d8d4390aa7
pinctrl: mediatek: data struct optimize and remove unused member

struct mtk_desc_pin.chip, mtk_pinctrl_devdata.invser_offset
and mtk_pinctrl_devdata.chip_type are never used in code.
Remove them.

Some per-pin data are using int for pin number and offsets.
Change to short and rearrange to reduce const data size.

Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Signed-off-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt8135.c
drivers/pinctrl/mediatek/pinctrl-mtk-common.h