Message ID | 20230130-hid-const-ll-driver-v1-1-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 s9csp1996041wrn; Sun, 29 Jan 2023 20:01:07 -0800 (PST) X-Google-Smtp-Source: AK7set/GSWEfhcLllynGaA0GUXZQ0ugndoGU36rbgOUKA7j7ECjsmr90BZHuPBIXQTVQ1UDsoarz X-Received: by 2002:a17:906:1304:b0:878:7662:7c8e with SMTP id w4-20020a170906130400b0087876627c8emr13736290ejb.55.1675051267780; Sun, 29 Jan 2023 20:01:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675051267; cv=none; d=google.com; s=arc-20160816; b=nBwKIjVKa9bjITYv605pzoVhu50XRFE7rDfFGy5akFz1v6SqEDX5UJhjtti1CNbT3B IVMa12Vbgfe5aEaA0nzvvmjGcIYK2ACDraH/uSJ0lzah3EhPBn6S7nRLMvor128zZx2k ignEGYn2eFkQPTHxS0i7/zyLPCNYVryQkGxBMPFnepbSxv2sPF8EG5rFdSJNs12wu1C6 x8KDPH+Z/VEufRwfVXExKkLpyyt7szVub/xqOoGvdVqfPGCxJFVAYxFzf8MLRsP6bGaG 972kTcGbzDMHKDY6K7tTMgIGYiXCDMQs3obRZx2uck3xnQ35gRooxJvQzKfkyW8XH1YS 4Wyg== 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=wqiv4mPNn/UZ4kpyrahUS9JNRM16Aj/gQRUcY2c599s=; b=PpRwEeYAzUclVVZtneeEYCrPtDE/obBqfFU2upJSPpaXd37q9ncXxrpNqqIErQQ1qD m2EwjoOEIqKmoj3CihHqOvyvgfjuJQLWcfL2+zwBk20zhiTqKQ26nY3W35iG5OzoXrun e4I0RxDxe12Dk+1oi+mCK9XaeDAWMRlcNsu5QsvzJYaUgVF9Vj29eWYQViwEZ5S7sleZ ZUsefdMNDnfTzq2496/gj55qHibBfwhvGhv0jmdeSv9WDhaDI9+0M8I32PkBb849xK+w dlpLc+3+rXk2V80M+5Z86VHscba/K17g29qeH1/WN12RlW7PhrDY4UHTSb5RnTfgVWaX cNJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=JYcwn7v2; 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 l18-20020a056402255200b004a249bfbd6dsi1509443edb.516.2023.01.29.20.00.44; Sun, 29 Jan 2023 20:01:07 -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=JYcwn7v2; 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 S235437AbjA3EAS (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Sun, 29 Jan 2023 23:00:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235384AbjA3EAE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 29 Jan 2023 23:00:04 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92A351555A; Sun, 29 Jan 2023 19:59:50 -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=1675051187; bh=ISqKcgoa9toyUt73TyvoOukrl8TtLDEKeZ9Jya+pGEs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=JYcwn7v2TZRHZZxncXwLC7kB9NOOT+MIRfVX/Ndd+dDv+HUHBGsJ0OIqBpgCynIU0 PotCVcIQpwLfbbZPnhcO0XY4Nb6ql5ShFP9rx42R+DpaKGMngegH95phLOg/qY7dMM fqIJZLd17YhoInNjcG1ZjSBEEVq/PiJYgG8u4nXI= Date: Mon, 30 Jan 2023 03:59:37 +0000 Subject: [PATCH 1/9] HID: amd_sfh: 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-1-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=1675051184; l=870; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=ISqKcgoa9toyUt73TyvoOukrl8TtLDEKeZ9Jya+pGEs=; b=OUNlZGUMG9mYh6APzUnty4uy80xFEn/ZmE3vZyBzFoD3eTm7DGVinOtF2smH/XvOyEdhxNuUeNWv tvsmtRA9C08txM5IMIwGlAkCmdwLUEhASMKjT0/arF5923GkUFhx 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?1756418558018803842?= X-GMAIL-MSGID: =?utf-8?q?1756418558018803842?= |
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/hid/amd-sfh-hid/amd_sfh_hid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_hid.c b/drivers/hid/amd-sfh-hid/amd_sfh_hid.c index 1b18291fc5af..705b52337068 100644 --- a/drivers/hid/amd-sfh-hid/amd_sfh_hid.c +++ b/drivers/hid/amd-sfh-hid/amd_sfh_hid.c @@ -112,7 +112,7 @@ void amdtp_hid_wakeup(struct hid_device *hid) } } -static struct hid_ll_driver amdtp_hid_ll_driver = { +static const struct hid_ll_driver amdtp_hid_ll_driver = { .parse = amdtp_hid_parse, .start = amdtp_hid_start, .stop = amdtp_hid_stop,