Skip to content

Commit e16e9f1

Browse files
author
Jiri Kosina
committed
Merge branch 'for-5.13/warnings' into for-linus
- plethora of fixes for valid gcc warnings from Lee Jones
2 parents 6c905ab + ff0e9ee commit e16e9f1

12 files changed

+30
-31
lines changed

drivers/hid/hid-alps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ enum dev_num {
7474
UNKNOWN,
7575
};
7676
/**
77-
* struct u1_data
77+
* struct alps_dev
7878
*
7979
* @input: pointer to the kernel input device
8080
* @input2: pointer to the kernel input2 device

drivers/hid/hid-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2129,7 +2129,7 @@ struct hid_dynid {
21292129
};
21302130

21312131
/**
2132-
* store_new_id - add a new HID device ID to this driver and re-probe devices
2132+
* new_id_store - add a new HID device ID to this driver and re-probe devices
21332133
* @drv: target device driver
21342134
* @buf: buffer for scanning device ID data
21352135
* @count: input size

drivers/hid/hid-kye.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc,
655655
}
656656

657657
/**
658-
* Enable fully-functional tablet mode by setting a special feature report.
658+
* kye_tablet_enable() - Enable fully-functional tablet mode by setting a special feature report.
659659
*
660660
* @hdev: HID device
661661
*

drivers/hid/hid-logitech-hidpp.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static int __hidpp_send_report(struct hid_device *hdev,
261261
return ret == fields_count ? 0 : -1;
262262
}
263263

264-
/**
264+
/*
265265
* hidpp_send_message_sync() returns 0 in case of success, and something else
266266
* in case of a failure.
267267
* - If ' something else' is positive, that means that an error has been raised
@@ -423,7 +423,7 @@ static inline bool hidpp_report_is_connect_event(struct hidpp_device *hidpp,
423423
(report->rap.sub_id == 0x41));
424424
}
425425

426-
/**
426+
/*
427427
* hidpp_prefix_name() prefixes the current given name with "Logitech ".
428428
*/
429429
static void hidpp_prefix_name(char **name, int name_length)
@@ -454,6 +454,7 @@ static void hidpp_prefix_name(char **name, int name_length)
454454
* hidpp_scroll_counter_handle_scroll() - Send high- and low-resolution scroll
455455
* events given a high-resolution wheel
456456
* movement.
457+
* @input_dev: Pointer to the input device
457458
* @counter: a hid_scroll_counter struct describing the wheel.
458459
* @hi_res_value: the movement of the wheel, in the mouse's high-resolution
459460
* units.
@@ -1884,7 +1885,7 @@ struct hidpp_touchpad_fw_items {
18841885
uint8_t persistent;
18851886
};
18861887

1887-
/**
1888+
/*
18881889
* send a set state command to the device by reading the current items->state
18891890
* field. items is then filled with the current state.
18901891
*/

drivers/hid/hid-picolcd_core.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ static int picolcd_raw_event(struct hid_device *hdev,
329329
{
330330
struct picolcd_data *data = hid_get_drvdata(hdev);
331331
unsigned long flags;
332-
int ret = 0;
333332

334333
if (!data)
335334
return 1;
@@ -342,9 +341,9 @@ static int picolcd_raw_event(struct hid_device *hdev,
342341

343342
if (report->id == REPORT_KEY_STATE) {
344343
if (data->input_keys)
345-
ret = picolcd_raw_keypad(data, report, raw_data+1, size-1);
344+
picolcd_raw_keypad(data, report, raw_data+1, size-1);
346345
} else if (report->id == REPORT_IR_DATA) {
347-
ret = picolcd_raw_cir(data, report, raw_data+1, size-1);
346+
picolcd_raw_cir(data, report, raw_data+1, size-1);
348347
} else {
349348
spin_lock_irqsave(&data->lock, flags);
350349
/*

drivers/hid/hid-sensor-custom.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,15 +397,14 @@ static ssize_t store_value(struct device *dev, struct device_attribute *attr,
397397

398398
if (!strncmp(name, "value", strlen("value"))) {
399399
u32 report_id;
400-
int ret;
401400

402401
if (kstrtoint(buf, 0, &value) != 0)
403402
return -EINVAL;
404403

405404
report_id = sensor_inst->fields[field_index].attribute.
406405
report_id;
407-
ret = sensor_hub_set_feature(sensor_inst->hsdev, report_id,
408-
index, sizeof(value), &value);
406+
sensor_hub_set_feature(sensor_inst->hsdev, report_id,
407+
index, sizeof(value), &value);
409408
} else
410409
return -EINVAL;
411410

drivers/hid/hid-sensor-hub.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
/**
2020
* struct sensor_hub_data - Hold a instance data for a HID hub device
21-
* @hsdev: Stored hid instance for current hub device.
2221
* @mutex: Mutex to serialize synchronous request.
2322
* @lock: Spin lock to protect pending request structure.
2423
* @dyn_callback_list: Holds callback function
@@ -34,14 +33,14 @@ struct sensor_hub_data {
3433
spinlock_t dyn_callback_lock;
3534
struct mfd_cell *hid_sensor_hub_client_devs;
3635
int hid_sensor_client_cnt;
37-
unsigned long quirks;
3836
int ref_cnt;
3937
};
4038

4139
/**
4240
* struct hid_sensor_hub_callbacks_list - Stores callback list
4341
* @list: list head.
4442
* @usage_id: usage id for a physical device.
43+
* @hsdev: Stored hid instance for current hub device.
4544
* @usage_callback: Stores registered callback functions.
4645
* @priv: Private data for a physical device.
4746
*/
@@ -615,7 +614,6 @@ static int sensor_hub_probe(struct hid_device *hdev,
615614
}
616615

617616
hid_set_drvdata(hdev, sd);
618-
sd->quirks = id->driver_data;
619617

620618
spin_lock_init(&sd->lock);
621619
spin_lock_init(&sd->dyn_callback_lock);

drivers/hid/hid-uclogic-params.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
#include <asm/unaligned.h>
2222

2323
/**
24-
* Convert a pen in-range reporting type to a string.
24+
* uclogic_params_pen_inrange_to_str() - Convert a pen in-range reporting type
25+
* to a string.
2526
*
2627
* @inrange: The in-range reporting type to convert.
2728
*
@@ -516,7 +517,8 @@ void uclogic_params_cleanup(struct uclogic_params *params)
516517
}
517518

518519
/**
519-
* Get a replacement report descriptor for a tablet's interface.
520+
* uclogic_params_get_desc() - Get a replacement report descriptor for a
521+
* tablet's interface.
520522
*
521523
* @params: The parameters of a tablet interface to get report
522524
* descriptor for. Cannot be NULL.
@@ -689,7 +691,7 @@ static void uclogic_params_init_with_pen_unused(struct uclogic_params *params)
689691
}
690692

691693
/**
692-
* uclogic_params_init() - initialize a Huion tablet interface and discover
694+
* uclogic_params_huion_init() - initialize a Huion tablet interface and discover
693695
* its parameters.
694696
*
695697
* @params: Parameters to fill in (to be cleaned with

drivers/hid/hid-uclogic-rdesc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ const __u8 uclogic_rdesc_pen_v2_template_arr[] = {
641641
const size_t uclogic_rdesc_pen_v2_template_size =
642642
sizeof(uclogic_rdesc_pen_v2_template_arr);
643643

644-
/**
644+
/*
645645
* Expand to the contents of a generic buttonpad report descriptor.
646646
*
647647
* @_padding: Padding from the end of button bits at bit 44, until

drivers/hid/usbhid/hid-pidff.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ static void pidff_playback_pid(struct pidff_device *pidff, int pid_id, int n)
505505
HID_REQ_SET_REPORT);
506506
}
507507

508-
/**
508+
/*
509509
* Play the effect with effect id @effect_id for @value times
510510
*/
511511
static int pidff_playback(struct input_dev *dev, int effect_id, int value)
@@ -997,7 +997,7 @@ static int pidff_find_special_fields(struct pidff_device *pidff)
997997
return 0;
998998
}
999999

1000-
/**
1000+
/*
10011001
* Find the implemented effect types
10021002
*/
10031003
static int pidff_find_effects(struct pidff_device *pidff,

0 commit comments

Comments
 (0)