[PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays
Mark Brown
broonie at kernel.org
Wed Feb 9 13:43:13 UTC 2022
On Wed, Feb 09, 2022 at 10:03:10AM +0100, Javier Martinez Canillas wrote:
> + if (ssd130x->vbat_reg) {
> + ret = regulator_enable(ssd130x->vbat_reg);
> + if (ret) {
> + dev_err(dev, "Failed to enable VBAT: %d\n", ret);
> + return ret;
> + }
> + }
Unless the device supports power being physically omitted regulator
usage should not be optional, it's just more code and a recipie for poor
error handling.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20220209/e223578a/attachment-0001.sig>
More information about the dri-devel
mailing list