Thread (16 messages) 16 messages, 3 authors, 2022-02-22

Re: [PATCH 3/5] pinctrl: mediatek: common-v1: Use common probe function

From: Chen-Yu Tsai <wenst@chromium.org>
Date: 2022-02-21 04:36:09
Also in: linux-gpio, linux-mediatek, lkml

On Thu, Feb 10, 2022 at 10:20 PM AngeloGioacchino Del Regno
[off-list ref] wrote:
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 <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help