diff options
author | AngeloGioacchino Del Regno <[email protected]> | 2022-02-22 12:11:42 +0100 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2022-03-17 02:06:53 +0100 |
commit | c8c206cdc193d1c20f5c309a89b00b30010caad4 (patch) | |
tree | 9fd031255052c2ff2e5eccab7c908a9fd50b8d43 /net/switchdev/switchdev.c | |
parent | e091feda1e3cd2925a2819f2dc2d5487ced2b010 (diff) |
pinctrl: mediatek: common-v1: Use common probe function
Most of the mediatek pinctrl drivers are calling mtk_pctrl_init() and
passing only a pointer to struct mtk_pinctrl_devdata, as the regmap
handle it passed from device-tree, with the exception of mt6397.
For all of the drivers that don't require passing a struct regmap
pointer from a parent device, simplify the probe mechanism by assigning
the required structure as match data and use mtk_pctrl_common_probe()
as their probe function.
While at it, also collapse the of_device_id entries to a single line,
as they all fit in max 83 columns, which is acceptable.
Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
Reviewed-by: Chen-Yu Tsai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions