Message ID | 20240217-device_cleanup-staging-v1-1-286479d9a3f0@marliere.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-69828-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp276087dyc; Sat, 17 Feb 2024 03:45:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUV6DGrMi2RakWd67sduRAa9NXPVfL0wdZVbGO2YLrdZRjHl9wn0L3iQIzo5M+8h4N2m34BWfL/p4XbXWqKNQ8hVh4VwQ== X-Google-Smtp-Source: AGHT+IGmCG5Vd2k7qOiFeSSiFr3wmK2Yjl82Bp3FRQozmCsq9Wi0ruyb2C2bClLjejSWpnn6hfy7 X-Received: by 2002:a37:c44b:0:b0:785:a111:bbe2 with SMTP id h11-20020a37c44b000000b00785a111bbe2mr8489646qkm.41.1708170341449; Sat, 17 Feb 2024 03:45:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708170341; cv=pass; d=google.com; s=arc-20160816; b=GvpwGvw73I3n25ZKcpLKr6iyNFHST4hSurvAPOn2ycK6Oh0rJZzOKZAJJpVa6ioqiL 3zk5UvV3lw6K8D/X7kvIjupluJZVpu9scpPycRoHSLOagFWgACPN8z8HZN9a+95yX/Su DPYkgcdYkObmSZOjForbR+MBMStvvgsnezky9WEw2bxusOPQUckkqkE0mqpEoVy6Om9i pVCsYs7y6UaQfIGf2Es1lvBVB76c994TwkCt6Cl9Bz0SIDE2nu2/girvAKlR/dq+7Ui4 DScRgPq5FO/231TpmhMauvJhoL+Mt1ns0RaonyXBlUV8nfRa7zPJckwuUZD7KKGgeaQ7 9Kmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :dkim-signature:from; bh=lag4XHeCZet1+vKhZAhtGBsbBX5d4Oil7LYE5l7I2AI=; fh=9P3quzVOU7obxkVI767ZOlTSGBZOlcNzE0FswMaKq2w=; b=QjBzVGp/KhtJKOTHoLGB8ViScq0IbLP8uNLFHVCauovnDhkjGbmYy0u80PJEG9W5D/ 9ZZb1EkOMPX+hETX8UIZkKewurGutdcwTuN/xE9z3yQfM9ool7Qec71qben5VMebT2Fd z7axzkV2QnlT/bzF5Iw3PUGK3sguuYd9Lv01UUBVIpkbJUIVSQHOzV5wyLN0ljouqKeG 203KhUeegEkXmTnqRP0Bt+VxYa5bq4Kcs0GBMunHbq8p9wf2KdlURD+V/AI+GcLKiXva 5laB9f2qHdXMN0QvU/tCmuZzZdWibhZGvnJmv2YjQLZkBs6C+TpLg2zTr6ONeEQsZ/7e J/pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=GpxFqwiU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-69828-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69828-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bq19-20020a05620a469300b007872aaa2afbsi1998256qkb.598.2024.02.17.03.45.41 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 03:45:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69828-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=GpxFqwiU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-69828-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69828-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 401FA1C2166D for <ouuuleilei@gmail.com>; Sat, 17 Feb 2024 11:45:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AFCF69E13; Sat, 17 Feb 2024 11:45:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b="GpxFqwiU" Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D293E69DE7 for <linux-kernel@vger.kernel.org>; Sat, 17 Feb 2024 11:45:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708170330; cv=none; b=cDvBvFOjlpiUoXedaLdYsdu6UEzeJHsRfwVFptS9yvT7Yce/fRcxyD9B2rgDN6xwVAd3qJhIviizFQqkB0kDi7GiOwMb+Be/GOLU9VGuL4kbUX42x19xjVi12S6maZ3KZ9vD2PCQxy4+mURJ59PTOW1sEV6ASW9txD04RHqvMfQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708170330; c=relaxed/simple; bh=v9icTgsg3xm4DV/7J3o8nPQ107m2PfBcWQvGK1OONZg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=Y9ZFCioYfyO+EFipEgz9Mj4uY6Xu2otd6mIr9RuwyxXDXCWBa5rSELZdIbgqYOiwmUoUX7x5Frl3M8MmOm/XOD1Csh/NYGMZ7QsRBKnwlHrMx43xeRGUZbOW5/zhXA1CGxNQpz4wG2swBqk46s/OVE03f+1QVfjuoonG3OWV+Lk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b=GpxFqwiU; arc=none smtp.client-ip=209.85.167.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f181.google.com with SMTP id 5614622812f47-3c132695f1bso2122392b6e.2 for <linux-kernel@vger.kernel.org>; Sat, 17 Feb 2024 03:45:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708170327; x=1708775127; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:dkim-signature:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lag4XHeCZet1+vKhZAhtGBsbBX5d4Oil7LYE5l7I2AI=; b=DqSaSsDy/X7yEXOuoA6YB5ctOfeebSIiWBz5yHrfDXUAmJ7WM7PrxAsZCWXAf8jbgu rjr8Z2OtCucz0EcS+HInGJpSAI9+y67LbXF0zwEMRE77hj9YTNxPCXpzdeUrPkWi8+9v EpuHhGrWnh6pH96DS7hbt4ZGh8ojbWs6mkYTT12SzReLCqoXTzD7rR7iOJ5DfojVbpRR jB3eBjSwg5Fuca7k63Akg9kzm4NwkLcHsrNzkzhlbIoPQ38QbdtLerfeKFjkWIqx7uSD hpxhaM2MZt2l59n0KNykh+1DJ2Ahok2DL0mruX0XhVYony7q3UerNJqv1rFSR2Dw43XB H03g== X-Forwarded-Encrypted: i=1; AJvYcCWsxGlqlIy/1KhkDNVCVzFlarzkJxsZX/2v0mA+MDDOY1AV9ca7aet+nSOPSPPjhh1slXRzG4iQBps6dWfRiZ6mSW8/+eoJJrya2c+l X-Gm-Message-State: AOJu0YwiRg1Uu0OnTJNHCgRqjh5zlCFtcGBXavGeV1hLblecTVoDOHjd vCEgSgJCe1tYBFwZNoSQj8qs6cQtTL3cG9kRuynHv30/oVDk/zXv+kjMnwMW X-Received: by 2002:a05:6808:10d3:b0:3c0:b3f3:c30f with SMTP id s19-20020a05680810d300b003c0b3f3c30fmr8762322ois.9.1708170326735; Sat, 17 Feb 2024 03:45:26 -0800 (PST) Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id r30-20020aa79ede000000b006d638fd230bsm1530032pfq.93.2024.02.17.03.45.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 03:45:25 -0800 (PST) From: "Ricardo B. Marliere" <ricardo@marliere.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1708170324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lag4XHeCZet1+vKhZAhtGBsbBX5d4Oil7LYE5l7I2AI=; b=GpxFqwiUqaYKdzHW+NM2sHPb3FU8d+wpm7hIoX/2Fm9KY1ocbza2LcOs3Qt3cuECbH4Mkz r5Pw+1FpUx7C0OLmlVzMHTlQfW9yl6/6fHuClTriJYDESmwQARqx/G9Or35EPoZM5IsAJR gL28siywENHUq7x4zYLGIz5x/pkFUjp9A4hvxntQkNF8qagUhwhBW5G7O6WYZH0l1PuU0T AOZY2aWP9zsIHO9JB7QBMIZmk+5xSEyDiiJoZdRjm2t3oo9HV6UNCkkQZ7naW14lf74/0Z DrsOmuCpcntbT0ONjpss0AlzlR9bu10b7yWleUBVDChRam1SuEzReYAwmFpWhg== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 17 Feb 2024 08:45:56 -0300 Subject: [PATCH] staging: gdm724x: constantify the struct device_type usage Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240217-device_cleanup-staging-v1-1-286479d9a3f0@marliere.net> X-B4-Tracking: v=1; b=H4sIAHOc0GUC/x2MQQqAIBAAvxJ7Tigxor4SEbK72kJYaEUQ/j3pO DAzLySOwgnG6oXItyTZQ4G2rgBXGzwrocKgG20a3faKioS84MY2XIdKp/USvHLUEyOS7QYDJT4 iO3n+8TTn/AE88dzUaAAAAA== To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, "Ricardo B. Marliere" <ricardo@marliere.net> X-Developer-Signature: v=1; a=openpgp-sha256; l=1012; i=ricardo@marliere.net; h=from:subject:message-id; bh=v9icTgsg3xm4DV/7J3o8nPQ107m2PfBcWQvGK1OONZg=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBl0Jx9OrJCr8/dOtOY4V0TamFGZqLauiaU31iNk zl42IhR8qeJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZdCcfQAKCRDJC4p8Y4ZY pvVPEACWNV+xonBSaB6VMk16zpdP3pglb+12BZvoH24HcJEHWbZMidwwlA4Gg9YzKRB0ymg7mz6 MKW0vXWUjNJ872AVuUY0rs7uhZmNH5DpBBHtT2aPPPZFq4ihiSsFcBdcWyEm9nHi5zS9qVlbKcm tvU4mF4WtMqYj9HEcoW0piKnOqzDqUPq4OUnjtdhNTypr5HKwnWoo2OC+BhceE0wy0JjlGjQEjY qp6YZEthUxGYW0WmilTP5cjVFhh/QU55UCwqV1y4RBBXURBwJfwPN3Cnl761cYI+26DMARCY3b6 yg6m/73tOCNxJCU0D9bKGPAijeBDHE11drwSgd2jX6RT+/55T0fSWM/PkDltdP4PZaznaeWZtPT izF9I/f49aPwb04vWuCRYK1a/flytLJ2PnBTIqd5XoibuNXenycIH0oQ06WDe3sQyPuHVXrmdpl E+Ejr7HvTH3P2jBACEYS5nBqyQTT/l9sZd+myGTyKRsq2cJFl6XRjw7grUDBouEr+/CmR86bfOI sJMeDl1X+Yy2W+MVcWdYz7spzSjIGO+hTsJOKW7eADBrjW8sEbkT9t+tIWhvLfh2XG4E9u1p4cC Z0/ZdpbztZdh3Miq7FXB78Ts0nU7Tv1YQBe4IHg8aIlPtnsqQdp7VZQBK+rivZcRsn8nq4Py6Dj 0k/rVJLEDpJUwwg== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791146424131774983 X-GMAIL-MSGID: 1791146424131774983 |
Series |
staging: gdm724x: constantify the struct device_type usage
|
|
Commit Message
Ricardo B. Marliere
Feb. 17, 2024, 11:45 a.m. UTC
Since commit aed65af1cc2f ("drivers: make device_type const"), the
driver core can properly handle constant struct device_type. Move the
wwan_type variable to be a constant structure as well, placing it into
read-only memory which can not be modified at runtime.
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
---
drivers/staging/gdm724x/gdm_lte.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
base-commit: ce54e9342124ededf0a00ed4e8a8aee535bfbf00
change-id: 20240217-device_cleanup-staging-fd7deccda594
Best regards,
diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c index 5703a9ddb6d0..eb754b231429 100644 --- a/drivers/staging/gdm724x/gdm_lte.c +++ b/drivers/staging/gdm724x/gdm_lte.c @@ -43,7 +43,7 @@ static struct { struct sock *sock; } lte_event; -static struct device_type wwan_type = { +static const struct device_type wwan_type = { .name = "wwan", };