public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cdx: change struct bus_type for sysfs rescan callback as constant
@ 2023-04-03 14:04 Nipun Gupta
  2023-04-03 16:17 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Nipun Gupta @ 2023-04-03 14:04 UTC (permalink / raw)
  To: gregkh, linux-kernel, nikhil.agarwal
  Cc: git, michal.simek, pieter.jansen-van-vuuren, Nipun Gupta

As store prototype in struct bus_attribute has been updated
to have bus_type as constant, change the CDX sysfs entries to
follow the same.

Signed-off-by: Nipun Gupta <nipun.gupta@amd.com>
---

The bus attributes are marked as constant in patch:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=75cff725d9566699a670a02b3cfd1c6e9e9ed53e

 drivers/cdx/cdx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cdx/cdx.c b/drivers/cdx/cdx.c
index 67c32cb2c006..38511fd36325 100644
--- a/drivers/cdx/cdx.c
+++ b/drivers/cdx/cdx.c
@@ -363,7 +363,7 @@ static struct attribute *cdx_dev_attrs[] = {
 };
 ATTRIBUTE_GROUPS(cdx_dev);
 
-static ssize_t rescan_store(struct bus_type *bus,
+static ssize_t rescan_store(const struct bus_type *bus,
 			    const char *buf, size_t count)
 {
 	struct cdx_controller *cdx;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-03 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-03 14:04 [PATCH] cdx: change struct bus_type for sysfs rescan callback as constant Nipun Gupta
2023-04-03 16:17 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox