Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp780081rdb; Sun, 18 Feb 2024 11:17:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUxCqG3moq+4J/65Yjkkau1z7RKALXx7w+4BVAMR1NQmcSuHXHUCMxZsWC5wzDKCXCN5tijxExyLnpZMZMhMLlGMSBdNCqA3wTZbEYGpA== X-Google-Smtp-Source: AGHT+IG+tazEePCGPDUW9vAJ+Q+33aK+ANW77+fDB7j0V3q6+azaWkNIlDzggek9WUAzfm9vbEFb X-Received: by 2002:a05:6808:199f:b0:3c1:55ce:85f3 with SMTP id bj31-20020a056808199f00b003c155ce85f3mr2148907oib.50.1708283864442; Sun, 18 Feb 2024 11:17:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708283864; cv=pass; d=google.com; s=arc-20160816; b=OgqI82TxPQs1BywdDFvxInV9f7uYmn/wzzsDfE3pUkgkeKUo2m2UAQLAj9Ufs7k1KY LrGlF2lQAbaLl34Regr+e3wbnppLqyUt9POdXswQ1Ce6IKThC4iKZuji3sd8V3dVMhip ZPE4TBDkB3WCORwhjGZAFCMPJNcYgBOx7HHZcGhfyplF3x83MwmcEyqtFmDBqXIvokkq BEMX2OHucZS15zF/77bQYdyFXJcpIC93+mbBOF8Kl6Yj3Y0Kji+PF6gL7T/VlDI/mznT nO7O2RW0Jg+3rG+ix4DoXMu1nREBVtCLlptodCsW97+VTk+TLO/Fu7j+Ojo8auFGd97k YUUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject :dkim-signature:from; bh=Fk8ukIs7uHZX3iUzXQ9ugL6dlcSfSv7TsYZrgqe3wyA=; fh=ANjRb60xujGt82OBvOvGJnPJ4s9vyJ3Ye2hStIOA72o=; b=X+HI1LnIu8IBDRPIvDnoGX6p+R2Evk6n271PA4uV+neKVzeu9WWUiDrkKoNICiEILb 4qdqXo7Aso2kdgwMcteT4MAQsmEO/nqqC41o+QV/ZK7qavqF0+wokyTRjvtVjX+Qgb9/ 5gNkMzZNT5EcFE/mrYEiBX07xoAyv6IQU4Z+sbL8dUJ+1VjNybrG5c38E8WvoDM5w+qs hMTJQlylWBQvQ02Ig5G5W0ncxuvgAMFj6hmelFyso4u18Lg8t4eU8N7ZF3sU4sD++0NJ GHmvggDp/jwYH8s/xt1+fLTYgJfHs1p1XLh2mQdfeNO0OQXRXTtg9k5vn3vI6vUch1LJ +9aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=MRHOPFj9; 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-70543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jt13-20020a05621427ed00b0068f2ffd3a56si4420397qvb.588.2024.02.18.11.17.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 11:17:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70543-linux.lists.archive=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=MRHOPFj9; 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-70543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70543-linux.lists.archive=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 357E81C21097 for ; Sun, 18 Feb 2024 19:17:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79C0A6FBB7; Sun, 18 Feb 2024 19:17:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b="MRHOPFj9" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 CC0EB6BB4B; Sun, 18 Feb 2024 19:17:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708283855; cv=none; b=HPrX/OlVGhgTAPeulPo3m1JE87t2u5sr9yOWPtsGEh+8cXKJAzekfUt7nSVDImLgVF1SVV6+cphbE3b7VLU3z4K3nNyF7fT7Nj5XStPLf/KqAdC1dF+5sO5oe3ZDA8WuoLYvZfjfVfT2Y0qQWiBLRtpMAV99Z0d70i8gjfAT2n8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708283855; c=relaxed/simple; bh=6GJYJnEYvcK/tf09aTbDx+ptD0yLjYaCAgUY2ebxhSs=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=aJDx7BXDlLFOOr9b0LCEghFP00woOGd5B6+cBBuaOA3VsTu9VvGZuXhNlyeljK2+FWOvsBGfmR4LaNPyp+qL9Vqz3NhOKyKNKNZmWTP1kOZxS5XvUgn0chOfnlE+DrQJlRZKNn32H/3VsiqxtAvW8RGKGxoyy0rim0H6JbICRyw= 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=MRHOPFj9; arc=none smtp.client-ip=209.85.210.180 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-pf1-f180.google.com with SMTP id d2e1a72fcca58-6e45c59fc6cso262519b3a.0; Sun, 18 Feb 2024 11:17:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708283853; x=1708888653; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:dkim-signature:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=Fk8ukIs7uHZX3iUzXQ9ugL6dlcSfSv7TsYZrgqe3wyA=; b=sKQB/nfNxh1uTUwE5iMH4+FvPTqXKkNFOYqwHYu1gW/Qlj8RM7/b7+Hh7E2CQGs/9k jnpFOx6DG6I5IrGOxyrKMfX9Iymp2nrdV5CYDpdvdWhPu+Kd9YvU2Re/l4RXBIy1ZzFN uYQf0qVjOa0r75Y57TNguD9GxHnSMLCcpDfuyE8aok1ZXfL5uxdGAFkKXq5nNNf/vl8l dd6NVkrrv52Lf1GAJr8M5i92aSFNkqJhAGS0xPtC5FG952BVgZDdmKKMEITAyGtnIT3n oLsZuTuYjmoXEjwIfhEMPvnADlJNqsOKVCV7N5TSjZZi+hyKOlDILX2Eb0rh8FWsaGn5 UOzQ== X-Forwarded-Encrypted: i=1; AJvYcCX34ZH27npQxR0a1yYXN4W7H+Bjmw4x1J2zJ1O1bTot8bsMRJ3FrhgA0GKBlSpt9KL+NGLaFB5hfV7c0qgfRTImlUaInsw9ce7Ksd6l X-Gm-Message-State: AOJu0YzpeYwBf2PwD1F+vawix66pfdyjQS0rhJfib9R1VD7KUyGyDpLu h0v70ThjjVAZLMiNCIn558ojQXsUySEJQ2zufCkGryutqMfnXNQQ X-Received: by 2002:a05:6a20:c4a0:b0:19e:b6c6:8f15 with SMTP id eo32-20020a056a20c4a000b0019eb6c68f15mr9120711pzb.25.1708283853089; Sun, 18 Feb 2024 11:17:33 -0800 (PST) Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id s19-20020a056a00195300b006e4648bfee5sm275405pfk.161.2024.02.18.11.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 11:17:32 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1708283851; 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=Fk8ukIs7uHZX3iUzXQ9ugL6dlcSfSv7TsYZrgqe3wyA=; b=MRHOPFj9Fuw29IUIQuHv88ixcRHkksyIRDMvBSwQjjUSxuyjdWyoUgrLj3K6ZvJLTmxIb1 BGiiVuQVC01CHgYhbRIX/TfmLnzuCjVpQErRQultSc9/5UqO38jpzd1YSkryitvHHuydQ4 dmbCkq1OWdwrB21XoCrL0RO84X+HJg8RVmzYluhYMfwJw/6FGi07j/DZwuqbwvCBBss5f6 BE9BZM8Ib/p2McmpJ2hhFEppJEwVyQYmsKm9s/FItYn7bWHCPkeQ5YH5HbHWMPwyfo6cas QOhVqs6vjmlcGk1iqL64n5M6kD6NSF1z3eISE4zQTJDg6+GGiRhNvYresusfuA== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Subject: [PATCH 0/4] usb: constify struct device_type usage Date: Sun, 18 Feb 2024 16:18:08 -0300 Message-Id: <20240218-device_cleanup-usb-v1-0-77423c4da262@marliere.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAPBX0mUC/x2MQQqAIBAAvyJ7TlCJsL4SEaZrLYSJUgTi35OOA zNTIGMizDCxAgkfynSFBrJjYA8TduTkGoMSqhdKau6aZHG1J5pwR37njY/aG6vQCzkIaGFM6On 9p/NS6weC5oeeZAAAAA== To: Heikki Krogerus , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1253; i=ricardo@marliere.net; h=from:subject:message-id; bh=6GJYJnEYvcK/tf09aTbDx+ptD0yLjYaCAgUY2ebxhSs=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBl0lf0XrVU59zxdkDbhqM5QpjMXi6CKG6M3iVkP O3KAmgT84CJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZdJX9AAKCRDJC4p8Y4ZY pgMXD/4w4M8hTVUeQ03i/xH8L81HmRX73jPaVTutmQfmyhtNqSLpvmz1C5hjPyqJ315QO5nIafM cnXLe8T/enzPM2iPm6v7ONmllalJU0Qq3jlW1kyCrabbrFVu840zc6PqTfc/9/H9v85e68FB3nH Dq4UEw2W7HQCiXn9J9CsFoyOQ3HRfn8K18vqVGRObbY1vqDWhDA0dVDvvb0srBrrnwyhG5eXvOk fSntC2IM4IA8f/bdt/+6juGP5+/q7LzwaiQMZtNwcAXr/HCQTqBMrmUGNDA7EatsM0L626RRINd ojChGNRtQ1xhD7RGyM1v16/nkwXHFOkcEfFdzul1AMQjjtlu1N0LnzI3Ks5UBll2rxYWJbJfe97 ni6rP9+0O53xd+BKSoecgPIiNjk19+cAiLWlx7ff1fI+eO6Rb/3vkWcWOT7iymAayI+ujavlDlG Hv4QGmf1BRBZxY9Px7ERDBPaKTBPxEOtrznN2vofwwflF4ox1WraEsQsGcrB2w6S+cJEpgsPhO+ yhhG64K6VBwRQbNs/lwHlzQ7U4NZ9bn7+QjXK14LUoZiLT0oop6VcXW392F/J/MJj06/LAhWjKe yCf+JCQQyxcSRbIIpLVGJwXGHpz8/4RKS/akIleyNDLJw2vOM5JzMG/gVGQ8YkcSIjbG4yhM0pi bKVAYl7RABeNT2Q== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 This is a simple and straight forward cleanup series that makes all device types in the net subsystem constants. This has been possible since 2011 [1] but not all occurrences were cleaned. --- [1] https://lore.kernel.org/all/1305850262-9575-5-git-send-email-gregkh@suse.de/ Signed-off-by: Ricardo B. Marliere --- Ricardo B. Marliere (4): usb: typec: constify the struct device_type usage usb: phy: constify the struct device_type usage usb: gadget: constify the struct device_type usage usb: core: constify the struct device_type usage drivers/usb/core/endpoint.c | 2 +- drivers/usb/core/message.c | 2 +- drivers/usb/core/port.c | 2 +- drivers/usb/core/usb.c | 2 +- drivers/usb/core/usb.h | 8 ++++---- drivers/usb/gadget/function/u_ether.c | 2 +- drivers/usb/phy/phy.c | 2 +- drivers/usb/typec/pd.c | 30 +++++++++++++++--------------- 8 files changed, 25 insertions(+), 25 deletions(-) --- base-commit: cf92b9df3dcf45eab0fe3fcf9e97ce55c31c48c0 change-id: 20240218-device_cleanup-usb-98fac2ef0160 Best regards, -- Ricardo B. Marliere