From: "Thomas Weißschuh" <linux@weissschuh.net>
To: "Basavaraj Natikar" <basavaraj.natikar@amd.com>,
"Jiri Kosina" <jikos@kernel.org>,
"Benjamin Tissoires" <benjamin.tissoires@redhat.com>,
"K. Y. Srinivasan" <kys@microsoft.com>,
"Haiyang Zhang" <haiyangz@microsoft.com>,
"Wei Liu" <wei.liu@kernel.org>,
"Dexuan Cui" <decui@microsoft.com>,
"Filipe Laíns" <lains@riseup.net>,
"Srinivas Pandruvada" <srinivas.pandruvada@linux.intel.com>,
"Maximilian Luz" <luzmaximilian@gmail.com>,
"Corentin Chary" <corentin.chary@gmail.com>,
"Hans de Goede" <hdegoede@redhat.com>,
"Mark Gross" <markgross@kernel.org>,
"Viresh Kumar" <vireshk@kernel.org>,
"Johan Hovold" <johan@kernel.org>,
"Alex Elder" <elder@kernel.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-hyperv@vger.kernel.org,
platform-driver-x86@vger.kernel.org,
acpi4asus-user@lists.sourceforge.net,
greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev,
"Thomas Weißschuh" <linux@weissschuh.net>
Subject: [PATCH 7/9] platform/x86: asus-tf103c-dock: Constify lowlevel HID driver
Date: Mon, 30 Jan 2023 03:59:43 +0000 [thread overview]
Message-ID: <20230130-hid-const-ll-driver-v1-7-3fc282b3b1d0@weissschuh.net> (raw)
In-Reply-To: <20230130-hid-const-ll-driver-v1-0-3fc282b3b1d0@weissschuh.net>
Since commit 52d225346904 ("HID: Make lowlevel driver structs const")
the lowlevel HID drivers are only exposed as const.
Take advantage of this to constify the underlying structure, too.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
drivers/platform/x86/asus-tf103c-dock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/x86/asus-tf103c-dock.c b/drivers/platform/x86/asus-tf103c-dock.c
index 62310e06282b..84c45e8f51ad 100644
--- a/drivers/platform/x86/asus-tf103c-dock.c
+++ b/drivers/platform/x86/asus-tf103c-dock.c
@@ -250,7 +250,7 @@ static int tf103c_dock_hid_raw_request(struct hid_device *hid, u8 reportnum,
return 0;
}
-static struct hid_ll_driver tf103c_dock_hid_ll_driver = {
+static const struct hid_ll_driver tf103c_dock_hid_ll_driver = {
.parse = tf103c_dock_hid_parse,
.start = tf103c_dock_hid_start,
.stop = tf103c_dock_hid_stop,
--
2.39.1
next prev parent reply other threads:[~2023-01-30 3:59 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-30 3:59 [PATCH 0/9] HID: Constify lowlevel HID drivers Thomas Weißschuh
2023-01-30 3:59 ` [PATCH 1/9] HID: amd_sfh: Constify lowlevel HID driver Thomas Weißschuh
2023-01-30 3:59 ` [PATCH 2/9] HID: hyperv: " Thomas Weißschuh
2023-01-30 15:42 ` Wei Liu
2023-01-30 3:59 ` [PATCH 3/9] HID: logitech-dj: " Thomas Weißschuh
2023-01-30 3:59 ` [PATCH 4/9] HID: steam: " Thomas Weißschuh
2023-01-30 3:59 ` [PATCH 5/9] HID: intel-ish-hid: " Thomas Weißschuh
2023-01-30 3:59 ` [PATCH 6/9] HID: surface-hid: " Thomas Weißschuh
2023-01-30 11:53 ` Maximilian Luz
2023-01-30 3:59 ` Thomas Weißschuh [this message]
2023-01-30 3:59 ` [PATCH 8/9] platform/x86: asus-tf103c-dock: Constify toprow keymap Thomas Weißschuh
2023-01-30 3:59 ` [PATCH 9/9] staging: greybus: hid: Constify lowlevel HID driver Thomas Weißschuh
2023-01-31 10:15 ` Greg Kroah-Hartman
2023-01-30 8:36 ` [PATCH 0/9] HID: Constify lowlevel HID drivers Hans de Goede
2023-01-30 13:26 ` Thomas Weißschuh
2023-01-30 13:28 ` Hans de Goede
2023-02-06 15:24 ` Benjamin Tissoires
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230130-hid-const-ll-driver-v1-7-3fc282b3b1d0@weissschuh.net \
--to=linux@weissschuh.net \
--cc=acpi4asus-user@lists.sourceforge.net \
--cc=basavaraj.natikar@amd.com \
--cc=benjamin.tissoires@redhat.com \
--cc=corentin.chary@gmail.com \
--cc=decui@microsoft.com \
--cc=elder@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=greybus-dev@lists.linaro.org \
--cc=haiyangz@microsoft.com \
--cc=hdegoede@redhat.com \
--cc=jikos@kernel.org \
--cc=johan@kernel.org \
--cc=kys@microsoft.com \
--cc=lains@riseup.net \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=luzmaximilian@gmail.com \
--cc=markgross@kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=srinivas.pandruvada@linux.intel.com \
--cc=vireshk@kernel.org \
--cc=wei.liu@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.