Re: [PATCH v3 04/15] media: i2c: Provide ov7251_check_hwcfg()

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

 



Hi Andy

On 05/05/2022 11:16, Andy Shevchenko wrote:
> On Wed, May 04, 2022 at 11:30:16PM +0100, Daniel Scally wrote:
>> Move the endpoint checking from .probe() to a dedicated function,
>> and additionally check that the firmware provided link frequencies
>> are a match for those supported by the driver. Store the index to the
>> matching link frequency so it can be easily identified later.
> ...
>
>> +	if (!bus_cfg.nr_of_link_frequencies) {
>> +		ret = -EINVAL;
>> +		dev_err_probe(ov7251->dev, ret,
>> +			      "no link frequencies defined\n");
> 		ret = dev_err_probe(ov7251->dev, -EINVAL,
> 				    "no link frequencies defined\n");
>
> ?


Derp - of course, thanks!

>> +		goto out_free_bus_cfg;
>> +	}
> ...
>
>> +	if (i == bus_cfg.nr_of_link_frequencies) {
>> +		ret = -EINVAL;
>> +		dev_err_probe(ov7251->dev, ret,
>> +			      "no supported link freq found\n");
> Ditto.
>
>> +		goto out_free_bus_cfg;
>> +	}



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux