linux-kernel.vger.kernel.org archive mirror
 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 3/9] HID: logitech-dj: Constify lowlevel HID driver
Date: Mon, 30 Jan 2023 03:59:39 +0000	[thread overview]
Message-ID: <20230130-hid-const-ll-driver-v1-3-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-logitech-dj.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c
index c358778e070b..62180414efcc 100644
--- a/drivers/hid/hid-logitech-dj.c
+++ b/drivers/hid/hid-logitech-dj.c
@@ -554,7 +554,7 @@ static const u8 hid_reportid_size_map[NUMBER_OF_HID_REPORTS] = {
 
 #define LOGITECH_DJ_INTERFACE_NUMBER 0x02
 
-static struct hid_ll_driver logi_dj_ll_driver;
+static const struct hid_ll_driver logi_dj_ll_driver;
 
 static int logi_dj_recv_query_paired_devices(struct dj_receiver_dev *djrcv_dev);
 static void delayedwork_callback(struct work_struct *work);
@@ -1506,7 +1506,7 @@ static bool logi_dj_ll_may_wakeup(struct hid_device *hid)
 	return hid_hw_may_wakeup(djrcv_dev->hidpp);
 }
 
-static struct hid_ll_driver logi_dj_ll_driver = {
+static const struct hid_ll_driver logi_dj_ll_driver = {
 	.parse = logi_dj_ll_parse,
 	.start = logi_dj_ll_start,
 	.stop = logi_dj_ll_stop,

-- 
2.39.1


  parent reply	other threads:[~2023-01-30  4:00 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 ` Thomas Weißschuh [this message]
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 ` [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-3-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).