[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6be74110-a65b-7b77-ceac-9da640964ba0@redhat.com>
Date: Tue, 12 Apr 2022 10:07:51 +0200
From: Javier Martinez Canillas <javierm@...hat.com>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Rob Herring <robh@...nel.org>,
DRI Development <dri-devel@...ts.freedesktop.org>,
Neil Armstrong <narmstrong@...libre.com>,
Mark Brown <broonie@...nel.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Chen-Yu Tsai <wens@...nel.org>, Chen-Yu Tsai <wens@...e.org>,
Daniel Vetter <daniel@...ll.ch>,
David Airlie <airlied@...ux.ie>,
Maxime Ripard <maxime@...no.tech>,
YueHaibing <yuehaibing@...wei.com>
Subject: Re: [PATCH v2 5/5] drm/solomon: Add SSD130x OLED displays SPI support
On 4/12/22 09:31, Geert Uytterhoeven wrote:
[snip]
>> +
>> + t->spi = spi;
>> +
>> + t->dc = ssd130x_spi_get_dc(&spi->dev);
>> + if (IS_ERR(t->dc))
>> + return PTR_ERR(t->dc);
>
> This can be simplified (no need for the PTR_ERR(ERR_PTR(...) dance)
> by open-coding ssd130x_spi_get_dc() here.
>
Right, that will be better indeed.
--
Best regards,
Javier Martinez Canillas
Linux Engineering
Red Hat
Powered by blists - more mailing lists