Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp951534rbd; Fri, 23 Feb 2024 08:27:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUfaJ6p5auT4iVj3XtTW0MFbxUlmphNuoQX0AmEbLRJcuWxKrG3SzUDO02IQcmxR563jLeXZQVLqb8BkfSrPqngEHXUG7IHcZ91jtso9A== X-Google-Smtp-Source: AGHT+IGKPbkVP3n155rJoJLNfJNjEEt9bbV3fh/ICMhhdcVIrkP3WLeTpB8DWbZfBSNaAUIp0aMY X-Received: by 2002:aa7:d497:0:b0:565:864f:7846 with SMTP id b23-20020aa7d497000000b00565864f7846mr232162edr.11.1708705658786; Fri, 23 Feb 2024 08:27:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708705658; cv=pass; d=google.com; s=arc-20160816; b=G2sp5EW0ieTI8Lrz/vs0iceTSSoklsaIzz37FwrftT3FhVPu2yrFKZndLh+LVWGoqY ZqN/YNNRx0XOP+t4Tasycfw4sJ4zMIDgsXK5GYQpd0s54CGeQ5OtF3ouKCAVEyNAyM3F ZJWnY+JZnMqbRhblah7suwmqV4vXtA7B3IF+JB7kFXbJ3u5DOwv67hV/RsK9RJh4Gmyt hpna53zAVctiMz7Fi/BdW1GAld9XMHo9WDbT5GWl/ty1cPXT265lOhmLRkCFoiQVssoG rFcfMZIvhmtFeGs1qHcA22ZrfZ+IoUkFp2UZ3i1jVRWuXCZA8/X99vtaAM5uLxPSYs0T Ypog== 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=vwcUezldUIWmmkFUx9diLv/jbwJsYW7fo4hGmaKKii8=; fh=sEelzdnxMdeDMmfJ1DIAU/iMg0SmGHy+VMFUwAJNcD4=; b=sD1BPXbUdMz5KrIN1KTw8KxI5hCc2dgliHdmtdFY9pXM11CWGO1xB7HA+XUpZ1SjA3 PDjb8eHdi9nfICo8ui6ZpqK7CV9iHcBXhZzFKbDDJZ7SEjdPQ+oy5B5/JU8GJ5RNzFfB ePj3PswT6w0iv7rh9G3qJIQn3Rix4ihJ7xFTrgKfzcsmvewGDbaHlKn24WX9P/b8+Ft1 Y+CzMNx5qQ0+Kou3DOsC+bbj6PkTvHiUpGezb3QMODlfcGwt+qx9EgJEHaV2KNVhwQkT KWL4WVzfgnDUVE/a+01NgCTGeKqCd5bzB6U78AxZd7g/rycVNq4KvypZnFw99Q+gQ0ek eLkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UNZyeRWl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78725-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78725-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e9-20020a056402190900b00564350bf723si6026623edz.631.2024.02.23.08.27.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:27:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78725-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UNZyeRWl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78725-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78725-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 832D01F23AB4 for ; Fri, 23 Feb 2024 16:27:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CE0B6FD5; Fri, 23 Feb 2024 16:27:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UNZyeRWl" 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 593342E41A for ; Fri, 23 Feb 2024 16:27:30 +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=1708705652; cv=none; b=DyL4XxYKhqnrLfDeV/XHwkDLP8jwXnWRuZ4Dy333aL2fa32sMTvDTPIDEuDI+k4HfZyXBpJlVvCo6Fuz+g/DJ7LzamiZzi2mbEAEO/B/dJoNRgIgI8GMxf9nCMjj5GET0SiKkHStKgw/W+VVhVIx/3HEnuOyJKOjZU2hndYVxLg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705652; c=relaxed/simple; bh=3XQlxBiuMQWbH88pVbFc6FT+A2e6X/Jk9rLhCkkzIbM=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=bi5LxqyQ8MH+DaHeEvq73i3O/K6qn6avqgG5eOaTEzjlS1HDxtT3CgFFgcl88dSAg5egM5XW6zlRb2rsiKsqKVm9HGK0IxxzrwirhBYWHQ/TrEmbKrhg1c6l4SQXjAx6Krx2Pa/YpfOUMLoe7mkwFVQ+DcW2gf0G35HlsP3wnhE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UNZyeRWl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8FBFC433C7; Fri, 23 Feb 2024 16:27:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708705650; bh=3XQlxBiuMQWbH88pVbFc6FT+A2e6X/Jk9rLhCkkzIbM=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=UNZyeRWlZFTMiC53eq7hVxWywPyfMaf7E6YLAJ7d8JKp9/m/ldWRdpoagGAy/Xe9P asSJg9zuGa6SKFzYefYiww3GCRbKOq0oMtCpZeZZwjQuxdyMlypeMAurGXN4mc61mp Vj43slfwOeurIgar/n7t93U9aZe9+9gOEKBujZKbDcRCuolorzUGszsO5ANkIPo2xh tbognc5d8Fva1vqrio7knGDAFNKVHrYyuYau/Q+zURZ9DMMESwTS5OPrrKpJ9JDb98 K9oP0u4DNbYPQgC00laaAxgnReg0zxRtxAuEMUc5jqZvD7A1kyVMcpAgEKiMhA58o2 eTyZbHWxpJ4pg== From: Lee Jones To: Lee Jones , "Ricardo B. Marliere" Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman In-Reply-To: <20240219-device_cleanup-mfd-v1-1-e4eef5ed2da8@marliere.net> References: <20240219-device_cleanup-mfd-v1-1-e4eef5ed2da8@marliere.net> Subject: Re: (subset) [PATCH] mfd: core: constify the struct device_type usage Message-Id: <170870564960.1739496.12759407049155095921.b4-ty@kernel.org> Date: Fri, 23 Feb 2024 16:27:29 +0000 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: 8bit X-Mailer: b4 0.12.4 On Mon, 19 Feb 2024 16:51:10 -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 mfd_dev_type > variable to be a constant structure as well, placing it into read-only > memory which can not be modified at runtime. > > Applied, thanks! [1/1] mfd: core: constify the struct device_type usage commit: 3cb10854004d2cb9c8f3a33deeeb499d0e0c7120 -- Lee Jones [李琼斯]