diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2025-07-01 21:29:15 -0700 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2025-08-21 12:00:58 -0700 |
| commit | 2ec25d34169580922fc6e398fb0cb2591d19349c (patch) | |
| tree | 340faee1e972be6645ded725a47905264504c88c /drivers/input/input-compat.h | |
| parent | Merge tag 'v6.17-rc2' into HEAD (diff) | |
| download | linux-2ec25d34169580922fc6e398fb0cb2591d19349c.tar.gz linux-2ec25d34169580922fc6e398fb0cb2591d19349c.zip | |
Input: move input_bits_to_string() to input-compat.c
The input_bits_to_string() function has special handling for compat
tasks, formatting the output as a sequence of 32-bit hex values. To
better isolate compatibility-related code, move it from
drivers/input/input.c to drivers/input/input-compat.c.
No functional change intended.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/input-compat.h')
| -rw-r--r-- | drivers/input/input-compat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/input-compat.h b/drivers/input/input-compat.h index 3b7bb12b023b..99c87ceb923d 100644 --- a/drivers/input/input-compat.h +++ b/drivers/input/input-compat.h @@ -75,4 +75,7 @@ int input_event_to_user(char __user *buffer, int input_ff_effect_from_user(const char __user *buffer, size_t size, struct ff_effect *effect); +int input_bits_to_string(char *buf, int buf_size, unsigned long bits, + bool skip_empty); + #endif /* _INPUT_COMPAT_H */ |
