Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1342458lqg; Sun, 3 Mar 2024 06:02:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVD4RKwPn4bRXX3Hw2hvjmnPcr07UnBK/JYi6fKq0CpYWu3g733VQc43Yt+Kj8YKjpedece/toC6PhfI7twdjm//ksCR9hWL7rbhmCvEA== X-Google-Smtp-Source: AGHT+IFnubgECnHV2TVPW3Hzek6PYOZ/V5gXf5v1Znp+FblfT2xBRaVspqXBCnNpyeYCY4aKNJF/ X-Received: by 2002:a05:6358:3a1a:b0:17b:5df3:98fa with SMTP id g26-20020a0563583a1a00b0017b5df398famr3497874rwe.19.1709474525552; Sun, 03 Mar 2024 06:02:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709474525; cv=pass; d=google.com; s=arc-20160816; b=eC0gywteRu0oZfEOVvM6rwSF9sQgj/sIAGkExDIynOfC41yEW7/J/rwuNENMlRuCnS Sfae/NdLDYnrdEqf6hqGU69iZY3dmpl68WZ4VI+6ifLV9RC5Hyz6SySApz22OPY1Ppt/ QPcqQb4jfoeVMGOqj1vbM6VeAnhNuKe021Vz0JjMSpTYc2UW4wXMhZOUFd2NdUNp763m twZ+1/oiwNyZ8+e9ZG2/7fwy7Bf+iBW/jKhh7ixZyVMPotZxYH8/vMYrSed6QeHI9Mfz KvTaKkSNrwvP5jBzGyoy1RsZ74StbJo6NFVfvrv66W0nvQ0R3oSfdpfH8thmJSaglL9a 8YYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=yLD+rjMyLsDcyTjY7BfOaA1H3vJ/vrUW1wXm29ECz/8=; fh=R4cwUM8UfY4fj80yfqU2+l6pUxvDD9EeFVOaKA59PyE=; b=hv18kTL2XFe1VG6HhLgL87Q/4fIKloqM3gU1/1OOT27yB+my2DgHZP8B81AvDS6+M8 wbwNiFjVkNaD972Zr2OvqQq6+MWz+ha6r6odJzbblmuOI+OhdsJTy3TAs1QtDYJ9Ntv3 CXbQi5jn2pBOGvslC9vhJQ/5dFUITtGSTjftI715HtAlMdfe6/7wTl1E63dGYLiyg5lr TdfO5oJBvUdIXDd+FKgc1dI3dxhyGY7A/Hubgq/pN6swtwf8fG9D777K2ybXAm3mH0x2 MMO8ujSofQjbpflZ4bevhxr+wI37Da1g3Tq+GdhM2NodNBEa0OK92mY6mqTdSiJyego3 0fOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n1tYmTYS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89768-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89768-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l14-20020ac84a8e000000b0042e7814665asi7029840qtq.190.2024.03.03.06.02.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 06:02:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89768-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=@kernel.org header.s=k20201202 header.b=n1tYmTYS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89768-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89768-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 B309F1C215BD for ; Sun, 3 Mar 2024 14:01:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41BB75A4CA; Sun, 3 Mar 2024 14:01:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="n1tYmTYS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A51F5A11B for ; Sun, 3 Mar 2024 14:01:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709474480; cv=none; b=PLK1Nggf7dRP336RyYgUa8jT6wMbvD8AaWLyoPTNNnrADEA4FS11zBq4gaWU7zEBiZKrS5Yo1ZRpR5VqKKg8WMVdEP9B1ajP7eK2gGlf5z/moHc/KDPCoQy/+UeR5QkWbtSL1ZHXCfHin2IvACqIDh2fIxY9ss6wOOULTLDsnRQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709474480; c=relaxed/simple; bh=j3VKp9c7J/45+77Ghwq5NjSO2ANNztfISOGtRk1wXBo=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=PaCXLQ8OiKPuCpmR4Z9/fFyLFrAStvW5d6RRvAIwgYxjI2KMf+OEgzjFKxI8aMDuvkIP/yZXosfaYC2h9ItnEyJiuyLq7Alve8Z59LegTStp9RyAFvedaR7/ToPKxxDMQujBp1h7fIpgeLo7pObS2coiVss/9g4rEC/tUXhEeRU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=n1tYmTYS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48CB3C433C7; Sun, 3 Mar 2024 14:01:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709474479; bh=j3VKp9c7J/45+77Ghwq5NjSO2ANNztfISOGtRk1wXBo=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=n1tYmTYSegn+1bkfjyFV1OqxIrXKrk5S+W9kdIDzn2EPUo6a5bf3lECn6F3Aq+I09 DhkaYloAzBFK4R6TxBPXEpPq8reeOUetf/ygg7Kx+uUupW4WKl1zYeytb+XTRs7hz4 /yw1CLOppw037wySUUonJQq1Icq3vinoE+bFAe5rtk4dM/PtEA+gOGpV/DtmJI+HxJ g8XuhJ8tjvS3iEtzTwzZh6IMT/d1TNnRH0HKFzx2yl97E6N1Pe3P/Aq/gwRgkkBgch htRXyUmdcWnZnamUdiViU4Xa79mFJ3z2Z3+Gn+YnV+e+yiOkiGdEvOPWMyJ5gzWj4n FECSQu9PIJ6Lw== From: Vinod Koul To: Bard Liao , Pierre-Louis Bossart , Sanyog Kale , "Ricardo B. Marliere" Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman In-Reply-To: <20240219-device_cleanup-soundwire-v1-1-9edd51767611@marliere.net> References: <20240219-device_cleanup-soundwire-v1-1-9edd51767611@marliere.net> Subject: Re: [PATCH] soundwire: constify the struct device_type usage Message-Id: <170947447688.763853.15642162619059844196.b4-ty@kernel.org> Date: Sun, 03 Mar 2024 19:31:16 +0530 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-Mailer: b4 0.12.3 On Mon, 19 Feb 2024 09:14:36 -0300, Ricardo B. Marliere wrote: > Since commit aed65af1cc2f ("drivers: make device_type const"), the driver > core can properly handle constant struct device_type. Move the > sdw_master_type and sdw_slave_type variables to be constant structures as > well, placing it into read-only memory which can not be modified at > runtime. > > > [...] Applied, thanks! [1/1] soundwire: constify the struct device_type usage commit: 99fea943d9dc2500227bced9acd671e5b39a1471 Best regards, -- ~Vinod