#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/pinctrl/pinctrl.h>
#include <linux/pinctrl/pinconf-generic.h>
#include <linux/mfd/mt6397/core.h>
#include "pinctrl-mtk-common.h"
#include "pinctrl-mtk-mt6397.h"
#define MT6397_PIN_REG_BASE …
static const struct mtk_pinctrl_devdata mt6397_pinctrl_data = …;
static int mt6397_pinctrl_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id mt6397_pctrl_match[] = …;
static struct platform_driver mtk_pinctrl_driver = …;
builtin_platform_driver(…) …;