Received: by 2002:ac8:5349:0:b0:427:7d78:cd45 with SMTP id d9csp815042qto; Wed, 20 Dec 2023 04:55:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFO4Sd5Y4SryU6oJ2eQK5Dd5hbOo4EuK6UAZZ6s8nhIKwMaXENpb9CQOmFKdzY1EAaK4Xtz X-Received: by 2002:a05:622a:1486:b0:427:7bb7:ed5b with SMTP id t6-20020a05622a148600b004277bb7ed5bmr3424560qtx.91.1703076943274; Wed, 20 Dec 2023 04:55:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703076943; cv=none; d=google.com; s=arc-20160816; b=Qa5AbgJDQvcyV782WgeWKRD0gDOQp/J/4tKYEn1KROylbU34nFOSCZIjszN4wfnYyn vGtoPu264L4dBlTtfBKfhK6sKpsM5Ug/wio2mIwgbZkdh8ET0ajBNpHrbm44DR3CGNaI lGRjbUz44QD21XDzQv+PXVKr0Fh7i7fRdc2yu3McrX2R9+rLRMX0/7L6jcWZblkJoHhd bbBkhznhdbTjHDzjQXFLQ2+fZItAulxGegywiRZ7cBJ0JXLuVNfurXIcsPDjJlVLzC9d KVp0jUsKkQiNdSzx2CuAZMk2Fc8o7F4PRBMzl+vXxnzvx2V+MMR14DkMy55nXSNxYAHv hR+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=QCN29+Y6GsynNFm7eCSzB+g/YYppH5Z5kO3yAxJk1EM=; fh=035n43H1kPoq1fyY9BeLOJ58B91TBTCGD8Jb17YC+dc=; b=ocKYyLKlbwb2klU8rM5FWKO0XzrpWIWyWgscijBPknMXrfgfM6nNq2eeunQgxjlXTO e1T8mY1AwnnknCKkpn2zL/j6tPSJP5dxBMCsiEJk5ShjLV7Z+FVDQGF0uUgUBiJNdjnp 7YLeCniKQRuomb1DNsVOZofO3EApHs0/mCBbSG+stIeU2Nkr+U/xTq4sztglAF/dKl8Y HkkIzPzz7QwW0SpDmysV5VQ6P35BFbOqhOpUTPanhEpmya24JZv9nyaox99GrSaLq9pw fG09TBUUnf12LhIhE/rpxEVKqub57RwULzXl0EvRamIWAors8LiVnEHLqF0I+hVMzcXK Jl4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nlZ+pKVN; spf=pass (google.com: domain of linux-kernel+bounces-6923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j13-20020ac85c4d000000b004260c9438c4si3669952qtj.599.2023.12.20.04.55.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 04:55:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nlZ+pKVN; spf=pass (google.com: domain of linux-kernel+bounces-6923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 CCA421C22C50 for ; Wed, 20 Dec 2023 12:55:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACAE725549; Wed, 20 Dec 2023 12:55:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="nlZ+pKVN" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) (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 F206D25545; Wed, 20 Dec 2023 12:55:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703076933; x=1734612933; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=QCN29+Y6GsynNFm7eCSzB+g/YYppH5Z5kO3yAxJk1EM=; b=nlZ+pKVNZKle1R6wukOu0GVXRhiXWr3jURqw0vo7mZMwgBN4R5UR2gbt FABgr1rvyHZhl+onez+WXwpmlvzlCTMCfVNruz7dUFRYGmbV+XterR03P pGZbMsP6yGaOo66IyrtoqL3IX5Ms63MqaMaXINDfKf5Rn+1VGNM9wPSc+ +LUTH9R2FJHcvC/PoFeQvbPFYL+1OrvPMs/PFFuzE6PgBIBi7RomwS1W3 mlhwx/cxB8fe8QrAYGySzitfpOMz4Fva+abNLPKH0GHdvzaoY1YbV0BEs EWJnb4zsnQpixdy6lEULMaDUCooY+0lC2Ru0ITMzHMBHvIrVUZb01ntBG g==; X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="481996688" X-IronPort-AV: E=Sophos;i="6.04,291,1695711600"; d="scan'208";a="481996688" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2023 04:55:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,291,1695711600"; d="scan'208";a="24569612" Received: from spandruv-desk.jf.intel.com (HELO spandruv-desk.amr.corp.intel.com) ([10.54.75.14]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2023 04:55:31 -0800 Message-ID: <90c4f24d697f0dbd5a1afac7d5ac49ffbe6fff14.camel@linux.intel.com> Subject: Re: [PATCH 2/3] HID: make ishtp_cl_bus_type const From: srinivas pandruvada To: Greg Kroah-Hartman , jikos@kernel.org, benjamin.tissoires@redhat.com Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Date: Wed, 20 Dec 2023 04:55:31 -0800 In-Reply-To: <2023122048-tribute-quote-1b4d@gregkh> References: <2023122045-pellet-eggbeater-8d2f@gregkh> <2023122048-tribute-quote-1b4d@gregkh> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-3.fc36) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Wed, 2023-12-20 at 08:38 +0100, Greg Kroah-Hartman wrote: > Now that the driver core can properly handle constant struct > bus_type, > move the ishtp_cl_bus_type variable to be a constant structure as > well, > placing it into read-only memory which can not be modified at > runtime. >=20 > Cc: Srinivas Pandruvada > Cc: Jiri Kosina > Cc: Benjamin Tissoires > Cc: linux-input@vger.kernel.org > Signed-off-by: Greg Kroah-Hartman Acked-by: Srinivas Pandruvada > --- > =C2=A0drivers/hid/intel-ish-hid/ishtp/bus.c | 2 +- > =C2=A01 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/hid/intel-ish-hid/ishtp/bus.c > b/drivers/hid/intel-ish-hid/ishtp/bus.c > index 7fc738a22375..aa6cb033bb06 100644 > --- a/drivers/hid/intel-ish-hid/ishtp/bus.c > +++ b/drivers/hid/intel-ish-hid/ishtp/bus.c > @@ -378,7 +378,7 @@ static const struct dev_pm_ops > ishtp_cl_bus_dev_pm_ops =3D { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.restore =3D ishtp_cl_dev= ice_resume, > =C2=A0}; > =C2=A0 > -static struct bus_type ishtp_cl_bus_type =3D { > +static const struct bus_type ishtp_cl_bus_type =3D { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.name=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D "ishtp", > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.dev_groups=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=3D ishtp_cl_dev_groups, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.probe=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D ishtp_cl_device_probe,