mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
9f4441fcbb
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>
15 lines
371 B
C
15 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 */
|