[PATCH v4 3/6] drm: Add driver for Solomon SSD130x OLED displays
Javier Martinez Canillas
javierm at redhat.com
Fri Feb 11 12:27:12 UTC 2022
Hello Geert,
On 2/11/22 13:23, Geert Uytterhoeven wrote:
[snip]
>>>> + if (IS_ERR(bl)) {
>>>
>>>> + ret = PTR_ERR(bl);
>>>> + dev_err_probe(dev, ret, "Unable to register backlight device\n");
>>>> + return ERR_PTR(ret);
>>>
>>> dev_err_probe(dev, PTR_ERR(bl), "Unable to register backlight device\n");
>>> return bl;
>>>
>>> ?
>>
>> No, because this function's return value is a struct ssd130x_device pointer,
>> not a struct backlight_device pointer.
>
> Hence
>
> return ERR_PTR(dev_err_probe(dev, PTR_ERR(bl),
> "Unable to register backlight device\n"));
>
> ?
>
Thanks, that would work.
Best regards,
--
Javier Martinez Canillas
Linux Engineering
Red Hat
More information about the dri-devel
mailing list