Am Freitag, 7. September 2018, 10:58:04 CEST schrieb Robin Murphy:
On 2018-09-06 2:50 PM, Heiko Stuebner wrote:
quoted
From: Zheng Yang <redacted>
Add a driver for the Innosilicon hdmi phy used on rk3228/rk3229
and rk3328 socs from Rockchip.
Signed-off-by: Zheng Yang <redacted>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Robin Murphy <robin.murphy@arm.com>
That reminds me, I really must dig out that box again and finish
figuring out the GPIOs and regulators... :)
[...]
quoted
+static int inno_hdmi_phy_probe(struct platform_device *pdev)
+{
+ struct inno_hdmi_phy *inno;
+ const struct of_device_id *match;
+ struct phy_provider *phy_provider;
+ struct resource *res;
+ void __iomem *regs;
+ int ret;
+
+ inno = devm_kzalloc(&pdev->dev, sizeof(*inno), GFP_KERNEL);
+ if (!inno)
+ return -ENOMEM;
+
+ inno->dev = &pdev->dev;
+
+ match = of_match_device(inno->dev->driver->of_match_table, inno->dev);
+ inno->plat_data = (struct inno_hdmi_phy_drv_data *)match->data;
Nit: if there's cause to do another respin anyway, you could simplify
this part with of_device_get_match_data().
done in v6 ... I found your mail directly after sending v5 ;-) .