Re: [PATCH v2] Input: elan_i2c - convert to use dev_groups

From: Dmitry Torokhov
Date: Wed Aug 10 2022 - 18:24:07 EST


On Tue, Aug 02, 2022 at 06:28:54PM +0200, Greg Kroah-Hartman wrote:
> There is no need for a driver to individually add/create device groups,
> the driver core will do it automatically for you. Convert the elan_i2c
> driver to use the dev_groups pointer instead of manually calling the
> driver core to create the group and have it be cleaned up later on by
> the devm core.
>
> Cc: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
> Cc: Hans de Goede <hdegoede@xxxxxxxxxx>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Cc: "jingle.wu" <jingle.wu@xxxxxxxxxx>
> Cc: linux-input@xxxxxxxxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

Applied, thank you.

--
Dmitry