dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [v2,4/6] ACPI / bus: Rename acpi_get_match_data() to acpi_device_get_match_data()
@ 2018-02-01 20:20 Andy Shevchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2018-02-01 20:20 UTC (permalink / raw)
  To: dmaengine, Rafael J . Wysocki, linux-acpi
  Cc: Andy Shevchenko, Sinan Kaya, Sakari Ailus, Vinod Koul

Do the renaming to be consistent with its sibling, i.e.
of_device_get_match_data().

No functional change.

Fixes: 80212a162329 ("ACPI / bus: Introduce acpi_get_match_data() function")
Fixes: 146b4dbb0eef ("ACPI: properties: Implement get_match_data() callback")
Cc: Sinan Kaya <okaya@codeaurora.org>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/acpi/bus.c      | 4 ++--
 drivers/acpi/property.c | 2 +-
 include/linux/acpi.h    | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index 413e4b1cb1be..0f3f38a4e0c5 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -787,7 +787,7 @@ const struct acpi_device_id *acpi_match_device(const struct acpi_device_id *ids,
 }
 EXPORT_SYMBOL_GPL(acpi_match_device);
 
-void *acpi_get_match_data(const struct device *dev)
+void *acpi_device_get_match_data(const struct device *dev)
 {
 	const struct acpi_device_id *match;
 
@@ -797,7 +797,7 @@ void *acpi_get_match_data(const struct device *dev)
 
 	return (void *)match->driver_data;
 }
-EXPORT_SYMBOL_GPL(acpi_get_match_data);
+EXPORT_SYMBOL_GPL(acpi_device_get_match_data);
 
 int acpi_match_device_ids(struct acpi_device *device,
 			  const struct acpi_device_id *ids)
diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c
index 466d1503aba0..f9b5fa230a86 100644
--- a/drivers/acpi/property.c
+++ b/drivers/acpi/property.c
@@ -1275,7 +1275,7 @@ static void *
 acpi_fwnode_device_get_match_data(const struct fwnode_handle *fwnode,
 				  const struct device *dev)
 {
-	return acpi_get_match_data(dev);
+	return acpi_device_get_match_data(dev);
 }
 
 #define DECLARE_ACPI_FWNODE_OPS(ops) \
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 246845da3f84..d0cbbbd88e0e 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -587,7 +587,7 @@ extern int acpi_nvs_for_each_region(int (*func)(__u64, __u64, void *),
 const struct acpi_device_id *acpi_match_device(const struct acpi_device_id *ids,
 					       const struct device *dev);
 
-void *acpi_get_match_data(const struct device *dev);
+void *acpi_device_get_match_data(const struct device *dev);
 extern bool acpi_driver_match_device(struct device *dev,
 				     const struct device_driver *drv);
 int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *);
@@ -766,7 +766,7 @@ static inline const struct acpi_device_id *acpi_match_device(
 	return NULL;
 }
 
-static inline void *acpi_get_match_data(const struct device *dev)
+static inline void *acpi_device_get_match_data(const struct device *dev)
 {
 	return NULL;
 }

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

* [v2,4/6] ACPI / bus: Rename acpi_get_match_data() to acpi_device_get_match_data()
@ 2018-02-04  7:23 Rafael J. Wysocki
  0 siblings, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2018-02-04  7:23 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: dmaengine, Rafael J . Wysocki, ACPI Devel Maling List, Sinan Kaya,
	Sakari Ailus, Vinod Koul

On Thu, Feb 1, 2018 at 9:20 PM, Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
> Do the renaming to be consistent with its sibling, i.e.
> of_device_get_match_data().
>
> No functional change.
>
> Fixes: 80212a162329 ("ACPI / bus: Introduce acpi_get_match_data() function")
> Fixes: 146b4dbb0eef ("ACPI: properties: Implement get_match_data() callback")

Why are you adding the Fixes: tags to a patch that doesn't make any
functional changes?

What are they useful for?
---
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [v2,4/6] ACPI / bus: Rename acpi_get_match_data() to acpi_device_get_match_data()
@ 2018-02-05 16:12 Andy Shevchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2018-02-05 16:12 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: dmaengine, Rafael J . Wysocki, ACPI Devel Maling List, Sinan Kaya,
	Sakari Ailus, Vinod Koul

On Sun, 2018-02-04 at 08:23 +0100, Rafael J. Wysocki wrote:
> On Thu, Feb 1, 2018 at 9:20 PM, Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > Do the renaming to be consistent with its sibling, i.e.
> > of_device_get_match_data().
> > 
> > No functional change.
> > 
> > Fixes: 80212a162329 ("ACPI / bus: Introduce acpi_get_match_data()
> > function")
> > Fixes: 146b4dbb0eef ("ACPI: properties: Implement get_match_data()
> > callback")
> 
> Why are you adding the Fixes: tags to a patch that doesn't make any
> functional changes?
> 
> What are they useful for?

Because next patch depends on this one and fixes API. 
So, here the Fixes tags to be sure that next will apply cleanly.

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

* [v2,4/6] ACPI / bus: Rename acpi_get_match_data() to acpi_device_get_match_data()
@ 2018-02-05 16:53 Rafael J. Wysocki
  0 siblings, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2018-02-05 16:53 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Rafael J. Wysocki, dmaengine, ACPI Devel Maling List, Sinan Kaya,
	Sakari Ailus, Vinod Koul

On Monday, February 5, 2018 5:12:02 PM CET Andy Shevchenko wrote:
> On Sun, 2018-02-04 at 08:23 +0100, Rafael J. Wysocki wrote:
> > On Thu, Feb 1, 2018 at 9:20 PM, Andy Shevchenko
> > <andriy.shevchenko@linux.intel.com> wrote:
> > > Do the renaming to be consistent with its sibling, i.e.
> > > of_device_get_match_data().
> > > 
> > > No functional change.
> > > 
> > > Fixes: 80212a162329 ("ACPI / bus: Introduce acpi_get_match_data()
> > > function")
> > > Fixes: 146b4dbb0eef ("ACPI: properties: Implement get_match_data()
> > > callback")
> > 
> > Why are you adding the Fixes: tags to a patch that doesn't make any
> > functional changes?
> > 
> > What are they useful for?
> 
> Because next patch depends on this one and fixes API. 
> So, here the Fixes tags to be sure that next will apply cleanly.

They may mislead people to belive that the patch needs to be backported,
so I'd rather not add them.
---
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2018-02-05 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-01 20:20 [v2,4/6] ACPI / bus: Rename acpi_get_match_data() to acpi_device_get_match_data() Andy Shevchenko
  -- strict thread matches above, loose matches on Subject: below --
2018-02-04  7:23 Rafael J. Wysocki
2018-02-05 16:12 Andy Shevchenko
2018-02-05 16:53 Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).