HID: universal-pidff: clang-format pass
Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
ae42428fb4
commit
5b9cae8c64
|
|
@ -8,12 +8,12 @@
|
|||
* Copyright (c) 2024, 2025 Tomasz Pakuła
|
||||
*/
|
||||
|
||||
#include <linux/device.h>
|
||||
#include <linux/hid.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/input-event-codes.h>
|
||||
#include "hid-ids.h"
|
||||
#include "usbhid/hid-pidff.h"
|
||||
#include <linux/device.h>
|
||||
#include <linux/hid.h>
|
||||
#include <linux/input-event-codes.h>
|
||||
#include <linux/module.h>
|
||||
|
||||
#define JOY_RANGE (BTN_DEAD - BTN_JOYSTICK + 1)
|
||||
|
||||
|
|
@ -21,7 +21,9 @@
|
|||
* Map buttons manually to extend the default joystick button limit
|
||||
*/
|
||||
static int universal_pidff_input_mapping(struct hid_device *hdev,
|
||||
struct hid_input *hi, struct hid_field *field, struct hid_usage *usage,
|
||||
struct hid_input *hi,
|
||||
struct hid_field *field,
|
||||
struct hid_usage *usage,
|
||||
unsigned long **bit, int *max)
|
||||
{
|
||||
if ((usage->hid & HID_USAGE_PAGE) != HID_UP_BUTTON)
|
||||
|
|
@ -126,8 +128,7 @@ static int universal_pidff_input_configured(struct hid_device *hdev,
|
|||
if (!test_bit(axis, input->absbit))
|
||||
continue;
|
||||
|
||||
input_set_abs_params(input, axis,
|
||||
input->absinfo[axis].minimum,
|
||||
input_set_abs_params(input, axis, input->absinfo[axis].minimum,
|
||||
input->absinfo[axis].maximum,
|
||||
axis == ABS_X ? 0 : 8, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue