[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACK8Z6HbKR5QktJjK1+QCKoLCJUHK8btQN5Xbij8A66VYzhcHw@mail.gmail.com>
Date: Fri, 7 Jan 2022 11:04:46 -0800
From: Rajat Jain <rajatja@...gle.com>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc: Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
Hans de Goede <hdegoede@...hat.com>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Benson Leung <bleung@...omium.org>,
Henrique de Moraes Holschuh <hmh@....eng.br>,
Mark Gross <markgross@...nel.org>,
linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org,
ibm-acpi-devel@...ts.sourceforge.net,
platform-driver-x86@...r.kernel.org, gwendal@...gle.com,
seanpaul@...gle.com, marcheu@...gle.com, rajatxjain@...il.com
Subject: Re: [PATCH v4 2/3] platform/chrome: Add driver for ChromeOS privacy-screen
Hi Dmitry, Benson,
On Fri, Jan 7, 2022 at 9:43 AM Dmitry Torokhov
<dmitry.torokhov@...il.com> wrote:
>
> Hi Rajat,
>
> On Tue, Dec 21, 2021 at 04:11:26PM -0800, Rajat Jain wrote:
> > +static int chromeos_privacy_screen_remove(struct acpi_device *adev)
> > +{
> > + struct drm_privacy_screen *drm_privacy_screen = acpi_driver_data(adev);
>
> Please add an empty line here:
>
> WARNING: Missing a blank line after declarations
> #292: FILE: drivers/platform/chrome/chromeos_privacy_screen.c:129:
> + struct drm_privacy_screen *drm_privacy_screen = acpi_driver_data(adev);
> + drm_privacy_screen_unregister(drm_privacy_screen);
>
> > + drm_privacy_screen_unregister(drm_privacy_screen);
> > + return 0;
> > +}
> > +
> > +static const struct acpi_device_id chromeos_privacy_screen_device_ids[] = {
> > + {"GOOG0010", 0}, /* Google's electronic privacy screen for eDP-1 */
> > + {}
> > +};
> > +MODULE_DEVICE_TABLE(acpi, chromeos_privacy_screen_device_ids);
> > +
> > +static struct acpi_driver chromeos_privacy_screen_driver = {
> > + .name = "chromeos_privacy_screen_drvr",
>
> Could I buy 2 move vowels? ;)
>
> > + .class = "ChromeOS",
> > + .ids = chromeos_privacy_screen_device_ids,
> > + .ops = {
> > + .add = chromeos_privacy_screen_add,
> > + .remove = chromeos_privacy_screen_remove,
> > + },
> > +};
> > +
> > +module_acpi_driver(chromeos_privacy_screen_driver);
> > +MODULE_LICENSE("GPL v2");
> > +MODULE_DESCRIPTION("ChromeOS ACPI Privacy Screen driver");
> > +MODULE_AUTHOR("Rajat Jain <rajatja@...gle.com>");
>
> Otherwise
>
> Reviewed-by: Dmitry Torokhov <dmitry.torokhov@...il.com>
Thanks! I took care of your comments and posted a v5:
https://patchwork.kernel.org/project/platform-driver-x86/patch/20220107190208.95479-2-rajatja@google.com/
Thanks & Best Regards,
Rajat
>
> Thanks.
>
> --
> Dmitry
Powered by blists - more mailing lists