* [PATCH] Documentation: devres: Sort managed interfaces
@ 2014-07-09 15:26 Geert Uytterhoeven
2014-07-09 23:32 ` Greg Kroah-Hartman
0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2014-07-09 15:26 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Stephen Rothwell, linux-kernel, Geert Uytterhoeven
Sort the list of managed interfaces and their lists of methods
alphabetically, to reduce the risk of merge conflicts and duplicates.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
I got annoyed by the merge conflicts when merging several for-next
branches a while ago, so I sorted the list after everything became
quiet.
---
Documentation/driver-model/devres.txt | 108 +++++++++++++++++-----------------
1 file changed, 54 insertions(+), 54 deletions(-)
diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt
index 1525e30483fd..3b8bbe0c389d 100644
--- a/Documentation/driver-model/devres.txt
+++ b/Documentation/driver-model/devres.txt
@@ -233,66 +233,76 @@ certainly invest a bit more effort into libata core layer).
6. List of managed interfaces
-----------------------------
-MEM
- devm_kzalloc()
- devm_kfree()
- devm_kmemdup()
- devm_get_free_pages()
- devm_free_pages()
+CLOCK
+ devm_clk_get()
+ devm_clk_put()
+
+DMA
+ dmam_alloc_coherent()
+ dmam_alloc_noncoherent()
+ dmam_declare_coherent_memory()
+ dmam_free_coherent()
+ dmam_free_noncoherent()
+ dmam_pool_create()
+ dmam_pool_destroy()
+
+GPIO
+ devm_gpiod_get()
+ devm_gpiod_get_index()
+ devm_gpiod_get_index_optional()
+ devm_gpiod_get_optional()
+ devm_gpiod_put()
IIO
devm_iio_device_alloc()
devm_iio_device_free()
- devm_iio_trigger_alloc()
- devm_iio_trigger_free()
devm_iio_device_register()
devm_iio_device_unregister()
+ devm_iio_trigger_alloc()
+ devm_iio_trigger_free()
IO region
- devm_request_region()
- devm_request_mem_region()
- devm_release_region()
devm_release_mem_region()
-
-IRQ
- devm_request_irq()
- devm_free_irq()
-
-DMA
- dmam_alloc_coherent()
- dmam_free_coherent()
- dmam_alloc_noncoherent()
- dmam_free_noncoherent()
- dmam_declare_coherent_memory()
- dmam_pool_create()
- dmam_pool_destroy()
-
-PCI
- pcim_enable_device() : after success, all PCI ops become managed
- pcim_pin_device() : keep PCI device enabled after release
+ devm_release_region()
+ devm_request_mem_region()
+ devm_request_region()
IOMAP
devm_ioport_map()
devm_ioport_unmap()
devm_ioremap()
devm_ioremap_nocache()
- devm_iounmap()
devm_ioremap_resource() : checks resource, requests memory region, ioremaps
+ devm_iounmap()
devm_request_and_ioremap() : obsoleted by devm_ioremap_resource()
pcim_iomap()
- pcim_iounmap()
- pcim_iomap_table() : array of mapped addresses indexed by BAR
pcim_iomap_regions() : do request_region() and iomap() on multiple BARs
+ pcim_iomap_table() : array of mapped addresses indexed by BAR
+ pcim_iounmap()
-REGULATOR
- devm_regulator_get()
- devm_regulator_put()
- devm_regulator_bulk_get()
- devm_regulator_register()
+IRQ
+ devm_free_irq()
+ devm_request_irq()
-CLOCK
- devm_clk_get()
- devm_clk_put()
+MDIO
+ devm_mdiobus_alloc()
+ devm_mdiobus_alloc_size()
+ devm_mdiobus_free()
+
+MEM
+ devm_free_pages()
+ devm_get_free_pages()
+ devm_kfree()
+ devm_kmemdup()
+ devm_kzalloc()
+
+PCI
+ pcim_enable_device() : after success, all PCI ops become managed
+ pcim_pin_device() : keep PCI device enabled after release
+
+PHY
+ devm_usb_get_phy()
+ devm_usb_put_phy()
PINCTRL
devm_pinctrl_get()
@@ -302,24 +312,14 @@ PWM
devm_pwm_get()
devm_pwm_put()
-PHY
- devm_usb_get_phy()
- devm_usb_put_phy()
+REGULATOR
+ devm_regulator_bulk_get()
+ devm_regulator_get()
+ devm_regulator_put()
+ devm_regulator_register()
SLAVE DMA ENGINE
devm_acpi_dma_controller_register()
SPI
devm_spi_register_master()
-
-GPIO
- devm_gpiod_get()
- devm_gpiod_get_index()
- devm_gpiod_get_optional()
- devm_gpiod_get_index_optional()
- devm_gpiod_put()
-
-MDIO
- devm_mdiobus_alloc()
- devm_mdiobus_alloc_size()
- devm_mdiobus_free()
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Documentation: devres: Sort managed interfaces
2014-07-09 15:26 [PATCH] Documentation: devres: Sort managed interfaces Geert Uytterhoeven
@ 2014-07-09 23:32 ` Greg Kroah-Hartman
2014-07-10 7:34 ` Geert Uytterhoeven
0 siblings, 1 reply; 5+ messages in thread
From: Greg Kroah-Hartman @ 2014-07-09 23:32 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Stephen Rothwell, linux-kernel
On Wed, Jul 09, 2014 at 05:26:18PM +0200, Geert Uytterhoeven wrote:
> Sort the list of managed interfaces and their lists of methods
> alphabetically, to reduce the risk of merge conflicts and duplicates.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> I got annoyed by the merge conflicts when merging several for-next
> branches a while ago, so I sorted the list after everything became
> quiet.
> ---
> Documentation/driver-model/devres.txt | 108 +++++++++++++++++-----------------
> 1 file changed, 54 insertions(+), 54 deletions(-)
What tree/version is this against? I get merge issues with my
driver-core-next tree :(
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Documentation: devres: Sort managed interfaces
2014-07-09 23:32 ` Greg Kroah-Hartman
@ 2014-07-10 7:34 ` Geert Uytterhoeven
2014-07-10 15:14 ` Greg Kroah-Hartman
0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2014-07-10 7:34 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Geert Uytterhoeven, Stephen Rothwell,
linux-kernel@vger.kernel.org
Hi Greg,
On Thu, Jul 10, 2014 at 1:32 AM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Wed, Jul 09, 2014 at 05:26:18PM +0200, Geert Uytterhoeven wrote:
>> Sort the list of managed interfaces and their lists of methods
>> alphabetically, to reduce the risk of merge conflicts and duplicates.
>>
>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>> ---
>> I got annoyed by the merge conflicts when merging several for-next
>> branches a while ago, so I sorted the list after everything became
>> quiet.
>> ---
>> Documentation/driver-model/devres.txt | 108 +++++++++++++++++-----------------
>> 1 file changed, 54 insertions(+), 54 deletions(-)
>
> What tree/version is this against? I get merge issues with my
> driver-core-next tree :(
Ah, I hadn't merged in your driver-core-next tree.
So it's against v3.16-rc4.
You have on top:
commit b23b35445ec82cde8afac8ba86b57a66a5fa1734
Author: Daniel Thompson <daniel.thompson@linaro.org>
Date: Thu Jul 3 10:05:02 2014 +0100
Documentation: devres: Add devm_kmalloc() et al
commit c9d53c0f2d23c792e4b9cf1551b63de4516f839e
Author: Jingoo Han <jg1.han@samsung.com>
Date: Wed Jun 11 14:00:05 2014 +0900
devres: remove devm_request_and_ioremap()
Shall I update and resend?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Documentation: devres: Sort managed interfaces
2014-07-10 7:34 ` Geert Uytterhoeven
@ 2014-07-10 15:14 ` Greg Kroah-Hartman
2014-07-10 15:23 ` Geert Uytterhoeven
0 siblings, 1 reply; 5+ messages in thread
From: Greg Kroah-Hartman @ 2014-07-10 15:14 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Geert Uytterhoeven, Stephen Rothwell,
linux-kernel@vger.kernel.org
On Thu, Jul 10, 2014 at 09:34:33AM +0200, Geert Uytterhoeven wrote:
> Hi Greg,
>
> On Thu, Jul 10, 2014 at 1:32 AM, Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> > On Wed, Jul 09, 2014 at 05:26:18PM +0200, Geert Uytterhoeven wrote:
> >> Sort the list of managed interfaces and their lists of methods
> >> alphabetically, to reduce the risk of merge conflicts and duplicates.
> >>
> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >> ---
> >> I got annoyed by the merge conflicts when merging several for-next
> >> branches a while ago, so I sorted the list after everything became
> >> quiet.
> >> ---
> >> Documentation/driver-model/devres.txt | 108 +++++++++++++++++-----------------
> >> 1 file changed, 54 insertions(+), 54 deletions(-)
> >
> > What tree/version is this against? I get merge issues with my
> > driver-core-next tree :(
>
> Ah, I hadn't merged in your driver-core-next tree.
> So it's against v3.16-rc4.
>
> You have on top:
>
> commit b23b35445ec82cde8afac8ba86b57a66a5fa1734
> Author: Daniel Thompson <daniel.thompson@linaro.org>
> Date: Thu Jul 3 10:05:02 2014 +0100
>
> Documentation: devres: Add devm_kmalloc() et al
>
> commit c9d53c0f2d23c792e4b9cf1551b63de4516f839e
> Author: Jingoo Han <jg1.han@samsung.com>
> Date: Wed Jun 11 14:00:05 2014 +0900
>
> devres: remove devm_request_and_ioremap()
>
> Shall I update and resend?
Yes, please do.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Documentation: devres: Sort managed interfaces
2014-07-10 15:14 ` Greg Kroah-Hartman
@ 2014-07-10 15:23 ` Geert Uytterhoeven
0 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2014-07-10 15:23 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Geert Uytterhoeven, Stephen Rothwell,
linux-kernel@vger.kernel.org
On Thu, Jul 10, 2014 at 5:14 PM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
>> > What tree/version is this against? I get merge issues with my
>> > driver-core-next tree :(
>>
>> Ah, I hadn't merged in your driver-core-next tree.
>> Shall I update and resend?
>
> Yes, please do.
Should have been arrived in your mailbox a few hours ago.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-07-10 15:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-09 15:26 [PATCH] Documentation: devres: Sort managed interfaces Geert Uytterhoeven
2014-07-09 23:32 ` Greg Kroah-Hartman
2014-07-10 7:34 ` Geert Uytterhoeven
2014-07-10 15:14 ` Greg Kroah-Hartman
2014-07-10 15:23 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox