Input: omap-keypad - use driver core to instantiate device attributes
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 11 Jul 2024 05:03:29 +0000 (22:03 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 13 Jul 2024 00:15:29 +0000 (17:15 -0700)
commit2d7877d797aaa16b18ac156ed87fa0f23b9907c8
treec01dfec7e377d624e4f98011ea89cf6aa447dded
parenta122a6fd72d64de1e2f7521046823e25cb269f06
Input: omap-keypad - use driver core to instantiate device attributes

Instead of manually creating driver-specific device attributes
set struct driver->dev_groups pointer to have the driver core
do it.

This also fixes issue with the attribute not being deleted on driver
unbind.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/Zo9nofWJ1xg9MgKs@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/omap-keypad.c