aboutsummaryrefslogtreecommitdiff
path: root/src/tmt248/hid-tmt248.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-08 19:28:28 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-08 19:28:28 +0300
commitcefd172e99cb6bac2570b04c8a062ac43151e20c (patch)
treeffd3b23d3384569757782da4e92bf871df6785c1 /src/tmt248/hid-tmt248.c
parent0923873c9b3a42a1e4d45cf66c2e67f09ee7a8af (diff)
downloadhid-tmff2-cefd172e99cb6bac2570b04c8a062ac43151e20c.tar.gz
hid-tmff2-cefd172e99cb6bac2570b04c8a062ac43151e20c.zip
make some functions static to silence warnings
Diffstat (limited to 'src/tmt248/hid-tmt248.c')
-rw-r--r--src/tmt248/hid-tmt248.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tmt248/hid-tmt248.c b/src/tmt248/hid-tmt248.c
index af3aaa9..9ac43d9 100644
--- a/src/tmt248/hid-tmt248.c
+++ b/src/tmt248/hid-tmt248.c
@@ -163,7 +163,7 @@ err:
return ret;
}
-int t248_wheel_destroy(void *data)
+static int t248_wheel_destroy(void *data)
{
struct t300rs_device_entry *t300rs = data;
@@ -175,7 +175,7 @@ int t248_wheel_destroy(void *data)
return 0;
}
-int t248_set_range(void *data, uint16_t value)
+static int t248_set_range(void *data, uint16_t value)
{
struct t300rs_device_entry *t248 = data;
@@ -251,9 +251,10 @@ static int t248_close(void *data, int open_mode)
return 0;
}
-int t248_wheel_init(struct tmff2_device_entry *tmff2, int open_mode)
+static int t248_wheel_init(struct tmff2_device_entry *tmff2, int open_mode)
{
- struct t300rs_device_entry *t248 = kzalloc(sizeof(struct t300rs_device_entry), GFP_KERNEL);
+ struct t300rs_device_entry *t248 = kzalloc(sizeof(struct t300rs_device_entry),
+ GFP_KERNEL);
struct list_head *report_list;
int ret;