All of lore.kernel.org
 help / color / mirror / Atom feed
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 4/9] HID: steam: Constify lowlevel HID driver
Date: Mon, 30 Jan 2023 03:59:40 +0000	[thread overview]
Message-ID: <20230130-hid-const-ll-driver-v1-4-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/hid/hid-steam.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hid/hid-steam.c b/drivers/hid/hid-steam.c
index 8ee43cb225fc..29ec8b34741a 100644
--- a/drivers/hid/hid-steam.c
+++ b/drivers/hid/hid-steam.c
@@ -674,7 +674,7 @@ static int steam_client_ll_raw_request(struct hid_device *hdev,
 			report_type, reqtype);
 }
 
-static struct hid_ll_driver steam_client_ll_driver = {
+static const struct hid_ll_driver steam_client_ll_driver = {
 	.parse = steam_client_ll_parse,
 	.start = steam_client_ll_start,
 	.stop = steam_client_ll_stop,

-- 
2.39.1


  parent reply	other threads:[~2023-01-30  4:09 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 ` Thomas Weißschuh [this message]
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 ` [PATCH 7/9] platform/x86: asus-tf103c-dock: " Thomas Weißschuh
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-4-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.