diff options
author | Benjamin Tissoires <bentiss@kernel.org> | 2024-09-13 16:14:56 +0300 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-09-13 16:14:56 +0300 |
commit | 054e0bd3457735ee03879c49e36f15f649fe9c86 (patch) | |
tree | 48fd781e9da238825ad979203c2a9ea994e4024a /drivers/hid/hid-uclogic-params.c | |
parent | 37c25a50313c4f11904c403dd55b06a539ba349f (diff) | |
parent | 9f5305ed80108a7849b3b27e1a889a7afff46a51 (diff) | |
download | linux-054e0bd3457735ee03879c49e36f15f649fe9c86.tar.xz |
Merge branch 'for-6.12/constify-rdesc' into for-linus
- Constification of report descriptors so drivers can use read-only
memory when declaring report descriptors fixups (Thomas Weißschuh)
Diffstat (limited to 'drivers/hid/hid-uclogic-params.c')
-rw-r--r-- | drivers/hid/hid-uclogic-params.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-uclogic-params.c b/drivers/hid/hid-uclogic-params.c index 5bab006ec165..87fd4eb76c70 100644 --- a/drivers/hid/hid-uclogic-params.c +++ b/drivers/hid/hid-uclogic-params.c @@ -681,7 +681,7 @@ void uclogic_params_cleanup(struct uclogic_params *params) * -ENOMEM, if failed to allocate memory. */ int uclogic_params_get_desc(const struct uclogic_params *params, - __u8 **pdesc, + const __u8 **pdesc, unsigned int *psize) { int rc = -ENOMEM; @@ -769,7 +769,7 @@ static void uclogic_params_init_invalid(struct uclogic_params *params) static int uclogic_params_init_with_opt_desc(struct uclogic_params *params, struct hid_device *hdev, unsigned int orig_desc_size, - __u8 *desc_ptr, + const __u8 *desc_ptr, unsigned int desc_size) { __u8 *desc_copy_ptr = NULL; |