Re: [PATCH v4 2/2] phy: add Rockchip Innosilicon hdmi phy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Freitag, 7. September 2018, 10:58:04 CEST schrieb Robin Murphy:
> On 2018-09-06 2:50 PM, Heiko Stuebner wrote:
> > From: Zheng Yang <zhengyang@xxxxxxxxxxxxxx>
> > 
> > Add a driver for the Innosilicon hdmi phy used on rk3228/rk3229
> > and rk3328 socs from Rockchip.
> > 
> > Signed-off-by: Zheng Yang <zhengyang@xxxxxxxxxxxxxx>
> > Signed-off-by: Heiko Stuebner <heiko@xxxxxxxxx>
> > Tested-by: Robin Murphy <robin.murphy@xxxxxxx>
> 
> That reminds me, I really must dig out that box again and finish 
> figuring out the GPIOs and regulators... :)
>
> [...]
> > +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 ;-) .






[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux