Message ID | 20230130-hid-const-ll-driver-v1-7-3fc282b3b1d0@weissschuh.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1996453wrn; Sun, 29 Jan 2023 20:02:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXu/Ix/EL4nU0RpR58/zrzG0cgoGjqBIFKtP+uuF1WR9vrFyzhQzCnWsIQnoeCFScaLscqZx X-Received: by 2002:a05:6402:5023:b0:49e:9651:d180 with SMTP id p35-20020a056402502300b0049e9651d180mr46195041eda.18.1675051342428; Sun, 29 Jan 2023 20:02:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675051342; cv=none; d=google.com; s=arc-20160816; b=wqrpjoonEcfttlFBZqwGOZx84oNjN4tTlTHsD9exXAsX5Ev+A1cMspK7uOSnoAF1Ho 8DwgOfRVEI/evAb2P4y2jK2Quq3byIdukiMp2l9JwpNzDN+nRB50tpHzMoXERWwuXSm8 CKRSGf7cD8bXk3dYA969/EOixdxiYJQlRp61sWN2f6n53mR/pYWDVwH/ltUR3Bzot6bE HI+wS01yBCULV3s26fG0TgjswL/nX9lfm0klcrI3q9kMyISKMwqKe5id2eTs7ojx7lUn JUxoPkQq7w7yWI82ov6yWKiUstRCgt3P0/k87vLArFNEmMeE4xgTNknq7iziNvgnIdQZ fz0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:dkim-signature :from; bh=+DQ5cGMlIsZBfG0NpILmNvUXtpuQys2qpwaVCwAUJcQ=; b=sDqz6yBeiDiP4yAHMd+FJORqR8IloczdC++un81PiuPUJwbL+Fff0xHxf+wCPOCjVZ 4pl5EjOal4+QrsJSlOUz9jhekNYMqEDKNCIQqIgoxGxUBggA7YoIyjYXMfvaFjuvnGiA 5/NC4bsZoLxKLU/f3dkgUcNYINPPio0EyFe2qkOHe3XW4oDEqz1oh2C8PUR7q+6GNl+x /M78MGgNlM9Run0iVRnDF9UgmyO2DYnh1exsRP25GslxBZjD55A6fSXXfJAdHGPPsKb9 qPY7IQfDki7cDroVFKrgBTxqo0R9t3xvsMIRBfHdetUdsbNjT0rPfd9zUMycG1VhPrHP 1umA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=rFOgO8ba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f25-20020a056402151900b004a22e9b8b2dsi5473095edw.351.2023.01.29.20.01.58; Sun, 29 Jan 2023 20:02:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=rFOgO8ba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235611AbjA3EA4 (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Sun, 29 Jan 2023 23:00:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235592AbjA3EA1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 29 Jan 2023 23:00:27 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72DC71449E; Sun, 29 Jan 2023 20:00:04 -0800 (PST) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1675051189; bh=mMjfLcnVZF0dexendGDLr6JYFK0dx6mt/NJcsDV8H4Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=rFOgO8ba4msbhCZB2HpPHLLslEHAUK1mUaTQT0J/NsYvFRy6C7BKJNkmoKLPie0SR DdwIFUbWqlT81h9iTTh75VTMNS8I9rnLBw0eFbMnUlZqqozdz+xnlI82nVR1ahIfnr C4QZ6j7kBFLi8NW4eANXgRNE82H6WcFTYXOIj4UU= Date: Mon, 30 Jan 2023 03:59:43 +0000 Subject: [PATCH 7/9] platform/x86: asus-tf103c-dock: Constify lowlevel HID driver MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230130-hid-const-ll-driver-v1-7-3fc282b3b1d0@weissschuh.net> References: <20230130-hid-const-ll-driver-v1-0-3fc282b3b1d0@weissschuh.net> In-Reply-To: <20230130-hid-const-ll-driver-v1-0-3fc282b3b1d0@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>, =?utf-8?q?Filipe_La=C3=ADns?= <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, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1675051185; l=949; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=mMjfLcnVZF0dexendGDLr6JYFK0dx6mt/NJcsDV8H4Y=; b=uIrnpEXHlY673uTfeecek1YDTL/FNinG4H9nwb5N5A214b/jy314g0O+eRlNKMjYCcm8AMlofqEh C9p/Wc9ZA6GBSkRH1dKgC4Z+xcBlnJQF8Qi93zJVT3Xo4H3bPXDm X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756418636746714580?= X-GMAIL-MSGID: =?utf-8?q?1756418636746714580?= |
Series |
HID: Constify lowlevel HID drivers
|
|
Commit Message
Thomas Weißschuh
Jan. 30, 2023, 3:59 a.m. UTC
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,