[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMT+MTSDWK1dwgMHbNxAHab5_45xDn7YTfZDUdUL5Zjx++X4kw@mail.gmail.com>
Date: Mon, 25 Nov 2024 12:28:18 +0100
From: Sasha Finkelstein <fnkl.kernel@...il.com>
To: neil.armstrong@...aro.org
Cc: Hector Martin <marcan@...can.st>, Sven Peter <sven@...npeter.dev>,
Alyssa Rosenzweig <alyssa@...enzweig.io>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>, Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>, David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Jessica Zhang <quic_jesszhan@...cinc.com>, asahi@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org, dri-devel@...ts.freedesktop.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Nick Chan <towinchenmi@...il.com>
Subject: Re: [PATCH 3/5] gpu: drm: adp: Add a backlight driver for the Summit LCD
On Mon, 25 Nov 2024 at 09:45, Neil Armstrong <neil.armstrong@...aro.org> wrote:
> > +static int summit_suspend(struct device *dev)
> > +{
> > + struct summit_data *panel = dev_get_drvdata(dev);
> > +
> > + int err = mipi_dsi_dcs_set_display_brightness(panel->dsi, 0);
> > +
> > + if (err < 0)
> > + return err;
> > + return 0;
>
> Just return err here, add a common function to set a brighness value and
> avoid duplicate code like here.
I felt that mipi_dsi_dcs_set_display_brightness is common enough, is it not?
Ack on all other changes, will be done for v2.
Powered by blists - more mailing lists