* [PATCH v2] drivers: hid: change unsigned to unsigned int
@ 2020-06-16 19:47 Simao Gomes Viana
0 siblings, 0 replies; only message in thread
From: Simao Gomes Viana @ 2020-06-16 19:47 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Simao Gomes Viana, linux-input
as per scripts/checkpatch.pl
Signed-off-by: Simao Gomes Viana <devel@superboring.dev>
---
drivers/hid/hid-input.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index e70066e4c545..ef077da7485d 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -322,9 +322,9 @@ static const struct hid_device_id hid_battery_quirks[] = {
{}
};
-static unsigned find_battery_quirk(struct hid_device *hdev)
+static unsigned int find_battery_quirk(struct hid_device *hdev)
{
- unsigned quirks = 0;
+ unsigned int quirks = 0;
const struct hid_device_id *match;
match = hid_match_id(hdev, hid_battery_quirks);
@@ -428,11 +428,11 @@ static int hidinput_get_battery_property(struct power_supply *psy,
return ret;
}
-static int hidinput_setup_battery(struct hid_device *dev, unsigned report_type, struct hid_field *field)
+static int hidinput_setup_battery(struct hid_device *dev, unsigned int report_type, struct hid_field *field)
{
struct power_supply_desc *psy_desc;
struct power_supply_config psy_cfg = { .drv_data = dev, };
- unsigned quirks;
+ unsigned int quirks;
s32 min, max;
int error;
@@ -541,7 +541,7 @@ static void hidinput_update_battery(struct hid_device *dev, int value)
}
}
#else /* !CONFIG_HID_BATTERY_STRENGTH */
-static int hidinput_setup_battery(struct hid_device *dev, unsigned report_type,
+static int hidinput_setup_battery(struct hid_device *dev, unsigned int report_type,
struct hid_field *field)
{
return 0;
@@ -1300,7 +1300,7 @@ static void hidinput_handle_scroll(struct hid_usage *usage,
void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value)
{
struct input_dev *input;
- unsigned *quirks = &hid->quirks;
+ unsigned int *quirks = &hid->quirks;
if (!usage->type)
return;
--
2.27.0
I added the missing Signed-off-by, sorry about that.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-16 19:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-16 19:47 [PATCH v2] drivers: hid: change unsigned to unsigned int Simao Gomes Viana
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).