USB: serial: ftdi_sio: convert to use dev_groups
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Wed, 14 Sep 2022 07:13:34 +0000 (15:13 +0800)
committerJohan Hovold <johan@kernel.org>
Mon, 19 Sep 2022 13:06:15 +0000 (15:06 +0200)
commit0f6632e2e8beb6a1e0895c1309dd0b84b805c202
tree441bcb5e4e316309be21a77a6d31eb50ea172f36
parentcfebcd53e65ec6f932f202fc9769da9e13fa0792
USB: serial: ftdi_sio: convert to use dev_groups

The driver core supports the ability to handle the creation and removal
of device-specific sysfs files in a race-free manner.

Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
[ johan: rebase on type rework, make groups static, clean up, amend
         commit message ]
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ftdi_sio.c