Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp480232lqs; Thu, 13 Jun 2024 16:46:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJqsyZO00kQuofnhr0H5kBfRP+UkaL3S0cUCEHGntuU51LoGbt/DTxU/PuGuV7N68aBFMtRY/9xe7LFKldb1Ozh9KFHvA6wICGf1tDyA== X-Google-Smtp-Source: AGHT+IE6mxOTN1c1Jt+up0SQoyEbitbkf23SK+AolJsUrUyv5/KxWYCedOYnC9YATPwJjhL251hE X-Received: by 2002:a17:907:72d6:b0:a6e:fe2b:7d2c with SMTP id a640c23a62f3a-a6f60d20efamr101206466b.23.1718322389520; Thu, 13 Jun 2024 16:46:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718322389; cv=pass; d=google.com; s=arc-20160816; b=YlcrBmGpeY5QxTZygqBTsTPOLMYTbedc8gqr0/UdQsLGglwXmENpAvP+1gDtXFaK02 oC42wBpgutdSR9ymk75hAxdxDIfYDo4ShUek/SZBX2S2RGBvCzSKnWLFaBzXZ39bu8Wn s1B7/2jfy2GMfiLEdrdmT3NGuqJsRH4gkBP05U2s9PdKoeNuv+K5cvT0+YQPgQiQWC5j KN0grZSyI6wrgHPzUdMbFo/2IhoOD9f2+M1FiNj9YnEPNMMf/Ui2TxG59FZCTgUpAUFW eyU2yRiA8MxJ/rWYuj7UlpHv3V034agchgoGX7yDhsz+VX7CjY4rR1eFdidRpA5DbX92 aZoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=/mtm9eDYG2cZAmP6Ju1HVX7nfYH9H/K2+MAXdlH/+PI=; fh=ktfCb5cJBlgAd9RHL0Ivgh1kbkHMPGC8r7fqpgF/F0M=; b=xzA8tv8dYq8SKKTdYDYHdZ2pfi5K4Zi5bqHw48MCL5H7ysa7XuVoEuRtz8evHw7DxD ADOsJFGh76Y3ckeat1EdeMv1mYbqHoKXFQ84slDwxKRjN6G14MXC8gSCzdYHPrfQoyjw aJ7oTkR+XGKJ5CJUBWJlINK2EIIDcsVk/RISaF92il/84kAjS/7dqZQ9oPwQwFKU9lxa 61tA9edjWD8d7705GExXMdork/GZdIUFmgPSNF1tqoJ9msHsvVbq4x/2JzN+/aMcjWbQ PBH46j6ArLzVrY9TEe8y26Dy3lK/agLFBe+1SJ2pY90zvoF2/FKec5zV/JPIdz4mvbwr LDRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XYT6UgPn; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-214124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214124-linux.lists.archive=gmail.com@vger.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 a640c23a62f3a-a6f56e81386si116528566b.1037.2024.06.13.16.46.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 16:46:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214124-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=@gmail.com header.s=20230601 header.b=XYT6UgPn; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-214124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214124-linux.lists.archive=gmail.com@vger.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 422371F21F86 for ; Thu, 13 Jun 2024 23:46:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF32115622E; Thu, 13 Jun 2024 23:45:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XYT6UgPn" Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (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 81DE1155A5C; Thu, 13 Jun 2024 23:45:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718322319; cv=none; b=mlUh5ngN5gRDSwUbvB70Mig9i2K1rCJKEf9kdInZUx2dQml0JdYMWYS7swvzYu3onp0Odlj/s91qOOpRahA6qh5GVbzNs1NbXWgtrL552qSu0dx1X3Ekbex4nR0uB5+ZAAS8fyeIVCW9k0eJoeumEH1Kc0e/yVRyY4Vy++30CYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718322319; c=relaxed/simple; bh=CsY0CCnDSEPM59W6XG1p9zg9ix32GuyUmtg/6k5/slk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mr3mbax1G4fh4lJKrLyUsLmbXvXw05WsSv4kwmGrOOGfHzuBWJSYZ6/cQBC4zWgWXTkBhDSRRcTVwzEQTdoqogvLVJxW8ac/e+jvW8PE1W1WF1iFjdOKSBQQLgIw08ZOP0Gn4c9FPNvnkVNILiRfA46nUAoVBYSnSfWIyDVezI4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=XYT6UgPn; arc=none smtp.client-ip=209.85.215.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-6eab07ae82bso1215812a12.3; Thu, 13 Jun 2024 16:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718322317; x=1718927117; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=/mtm9eDYG2cZAmP6Ju1HVX7nfYH9H/K2+MAXdlH/+PI=; b=XYT6UgPndWpTcYLW5I3al59t2p2qZbJN5ohEEC9/FQ+GGgl8ky8BzgDluMBPQfguvY qy/QhEzDxJavG7AkYj8xb7wAF9N4Tz6JyQUD9UunPvKNMc2+5cVlZQz3QyacaxexWJNS T47tCaW7BKJDY9IZ2iW8sZd4IbmjuX2EApwKnf3FeM55fxraqNsHiIlOT30LiJ9ARqxl /kv//xEHL58QDnrSGNkhTumEYHEHEavI2mEMIUBaVNzUel1WtHicOphoIcU2JTZl9zXA iOlWDtZfEhuno0CH2zHfS95uhRsGOB8kGCm8fq5A8UFYFBqqpS/6fUXQxnELFnP4+N+b jFbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718322317; x=1718927117; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/mtm9eDYG2cZAmP6Ju1HVX7nfYH9H/K2+MAXdlH/+PI=; b=nSkQxZW64t6nyABF6oH8y7S6OxXx3jWQI8exgsJRkrvL2mUgT7E15ng2BkITbPmWhx 3GjjbulsPMB9wv58nns97ysZ+pPQPVhOCt4XE5DQnhPFioHvrTtMsFdnIJw8pJwKTENp XSTRq31WekqLiV1rYKApQtyiw1CUsHPlfVRwv56TNIIthBJui6jejsguWQoscvT5Ifqn 0qgjb29ra+gRnem79VwQR2pnQ95KNontG9HEYD1oUJtg3Y5DDxVttNsD+DUE75i32cyG mjwDjGV5ZO29DaLUcMBBXAbB+anl8Qcgp993Av8uqPQ+yiCKJK8/sAkZr3jRVFUjVnTx gJiQ== X-Forwarded-Encrypted: i=1; AJvYcCWnjkJ9xK6qrQtZADqp/IKJ0DaOGpwHo7MHazLJRfSfBS6miBC1B1bMv+zCWJ3QyBurZh5e6ZaCr4CMD10mrSxpcenn83i9inHbP+iJFDNQyq1JwVTJ9YSKpMZXCLluCfdeo+ILhkAEtNc= X-Gm-Message-State: AOJu0YxgMcpOz9ugU1NP3YxCmCnDGKLSqtuMI85/vXqr3YYZvmDnGN4a Bjb0QUEhCYiPoPDHDK7p546QR+NHRPfGFIxuFepBr2OdnsrgzJfx X-Received: by 2002:a17:902:e549:b0:1f6:87c:6f with SMTP id d9443c01a7336-1f862a0d057mr14278975ad.62.1718322316518; Thu, 13 Jun 2024 16:45:16 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f855e7ca78sm19877575ad.106.2024.06.13.16.45.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 16:45:16 -0700 (PDT) Sender: Guenter Roeck Date: Thu, 13 Jun 2024 16:45:14 -0700 From: Guenter Roeck To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] hwmon: (core) Make hwmon_class const Message-ID: <447f8544-43e7-4907-bb76-0a805d3e7a20@roeck-us.net> References: <20240614-class-const-hwmon-v1-1-27b910d06a90@weissschuh.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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240614-class-const-hwmon-v1-1-27b910d06a90@weissschuh.net> On Fri, Jun 14, 2024 at 01:01:42AM +0200, Thomas Wei?schuh wrote: > Now that the driver core allows for struct class to be in read-only > memory, mark hwmon_class as const. > > Signed-off-by: Thomas Wei?schuh Applied. Thanks, Guenter > --- > drivers/hwmon/hwmon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > > --- > base-commit: d20f6b3d747c36889b7ce75ee369182af3decb6b > change-id: 20240614-class-const-hwmon-556014c02b70 > > Best regards, > > diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c > index 3b259c425ab7..1d1451dd239d 100644 > --- a/drivers/hwmon/hwmon.c > +++ b/drivers/hwmon/hwmon.c > @@ -136,7 +136,7 @@ static void hwmon_dev_release(struct device *dev) > kfree(hwdev); > } > > -static struct class hwmon_class = { > +static const struct class hwmon_class = { > .name = "hwmon", > .dev_groups = hwmon_dev_attr_groups, > .dev_release = hwmon_dev_release,