Input: psmouse - switch to using dev_groups for driver-specific attributes
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 3 Sep 2022 05:11:18 +0000 (22:11 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 3 Sep 2022 19:31:18 +0000 (12:31 -0700)
commitfd30a4ba81f94e7297a3fb3c0d83879a4e4b2591
tree2c34e94acfe8a15101ab15d7b11d3e371a4eac20
parentc99e3ac632f9dfa4e363cf370dea7467ebb0f367
Input: psmouse - switch to using dev_groups for driver-specific attributes

The driver core now has the ability to handle the creation and removal
of device-specific sysfs files, let's use it instead of registering and
unregistering attributes by hand.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20220903051119.1332808-2-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/psmouse-base.c