Re: [PATCH 1/8] Input: usbtouchscreen - use driver core to instantiate device attributes

From: Greg KH
Date: Fri Jul 12 2024 - 03:28:33 EST


On Thu, Jul 11, 2024 at 10:18:43PM -0700, Dmitry Torokhov wrote:
> Instead of manually creating driver-specific device attributes
> set struct usb_driver->dev_groups pointer to have the driver core
> do it.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
> ---
> drivers/input/touchscreen/usbtouchscreen.c | 31 +++++++++++++++-------
> 1 file changed, 21 insertions(+), 10 deletions(-)

Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>