memory: mtk-smi: Use a struct for the platform data for smi-common
authorYong Wu <yong.wu@mediatek.com>
Sat, 24 Aug 2019 03:01:49 +0000 (11:01 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 30 Aug 2019 13:57:26 +0000 (15:57 +0200)
commit42d42c76f8d2225aaed55997949d37424906e188
tree3e1ab7db11ff1c917335d79cadee61564c55b2f3
parent2e9b0908f5aa26336b2a39091db1a10402054128
memory: mtk-smi: Use a struct for the platform data for smi-common

Use a struct as the platform special data instead of the enumeration.

Also there is a minor change that moving the position of
"enum mtk_smi_gen" definition, this is because we expect define
"struct mtk_smi_common_plat" before it is referred.

This is a preparing patch for mt8183.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/memory/mtk-smi.c