mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
afdf5dd33a
Now that the driver core allows for struct class to be in read-only memory, making all 'class' structures to be declared at build time placing them into read-only memory, instead of having to be dynamically allocated at load time. Cc: Stefan Achatz <erazor_de@users.sourceforge.net> Cc: Jiri Kosina <jikos@kernel.org> Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com> Cc: linux-input@vger.kernel.org Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com> Link: https://lore.kernel.org/r/20230620183141.681353-3-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26 lines
490 B
C
26 lines
490 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#ifndef __HID_ROCCAT_H
|
|
#define __HID_ROCCAT_H
|
|
|
|
/*
|
|
* Copyright (c) 2010 Stefan Achatz <erazor_de@users.sourceforge.net>
|
|
*/
|
|
|
|
/*
|
|
*/
|
|
|
|
#include <linux/hid.h>
|
|
#include <linux/types.h>
|
|
|
|
#define ROCCATIOCGREPSIZE _IOR('H', 0xf1, int)
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
int roccat_connect(const struct class *klass, struct hid_device *hid,
|
|
int report_size);
|
|
void roccat_disconnect(int minor);
|
|
int roccat_report_event(int minor, u8 const *data);
|
|
|
|
#endif
|
|
|
|
#endif
|