mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 09:50:04 +00:00
![Greg Kroah-Hartman](/assets/img/avatar_default.png)
There is no need for a driver to individually add/create device groups, the driver core will do it automatically for you. Convert the hid-vivaldi core 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: Jiri Kosina <jikos@kernel.org> Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com> Cc: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
14 lines
371 B
C
14 lines
371 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _HID_VIVALDI_COMMON_H
|
|
#define _HID_VIVALDI_COMMON_H
|
|
|
|
struct hid_device;
|
|
struct hid_field;
|
|
struct hid_usage;
|
|
|
|
void vivaldi_feature_mapping(struct hid_device *hdev,
|
|
struct hid_field *field, struct hid_usage *usage);
|
|
|
|
extern const struct attribute_group *vivaldi_attribute_groups[];
|
|
|
|
#endif /* _HID_VIVALDI_COMMON_H */
|