linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 00/23] counter: cleanups and device lifetime fixes
@ 2021-12-30 15:02 Uwe Kleine-König
  2021-12-30 15:02 ` [PATCH v4 14/23] counter: Update documentation for new counter registration functions Uwe Kleine-König
  2021-12-30 16:44 ` [PATCH v4 00/23] counter: cleanups and device lifetime fixes Greg Kroah-Hartman
  0 siblings, 2 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2021-12-30 15:02 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: linux-iio, linux-kernel, kernel, Jonathan Cameron,
	Patrick Havelange, Kamel Bouhara, linux-arm-kernel,
	Syed Nayyar Waris, Oleksij Rempel, Ahmad Fatoum, Jarkko Nikula,
	Raymond Tan, Felipe Balbi (Intel),
	David Lechner, Fabrice Gasnier, Maxime Coquelin,
	Alexandre Torgue, linux-stm32, Jonathan Corbet, linux-doc

Hello,

On Thu, Dec 30, 2021 at 02:19:25PM +0100, Greg Kroah-Hartman wrote:
> Please rebase and resend the series against my char-misc-next branch.

this series is just v3 taken via b4 to collect the latest acks into
account and then rebased to Greg's char-misc-next.

Uwe Kleine-König (23):
  counter: Use container_of instead of drvdata to track counter_device
  counter: ftm-quaddec: Drop unused platform_set_drvdata()
  counter: microchip-tcb-capture: Drop unused platform_set_drvdata()
  counter: Provide a wrapper to access device private data
  counter: 104-quad-8: Convert to counter_priv() wrapper
  counter: interrupt-cnt: Convert to counter_priv() wrapper
  counter: microchip-tcb-capture: Convert to counter_priv() wrapper
  counter: intel-qep: Convert to counter_priv() wrapper
  counter: ftm-quaddec: Convert to counter_priv() wrapper
  counter: ti-eqep: Convert to counter_priv() wrapper
  counter: stm32-lptimer-cnt: Convert to counter_priv() wrapper
  counter: stm32-timer-cnt: Convert to counter_priv() wrapper
  counter: Provide alternative counter registration functions
  counter: Update documentation for new counter registration functions
  counter: 104-quad-8: Convert to new counter registration
  counter: interrupt-cnt: Convert to new counter registration
  counter: intel-qep: Convert to new counter registration
  counter: ftm-quaddec: Convert to new counter registration
  counter: microchip-tcb-capture: Convert to new counter registration
  counter: stm32-timer-cnt: Convert to new counter registration
  counter: stm32-lptimer-cnt: Convert to new counter registration
  counter: ti-eqep: Convert to new counter registration
  counter: remove old and now unused registration API

 Documentation/driver-api/generic-counter.rst |  10 +-
 drivers/counter/104-quad-8.c                 |  91 ++++-----
 drivers/counter/counter-core.c               | 186 ++++++++++++++-----
 drivers/counter/ftm-quaddec.c                |  36 ++--
 drivers/counter/intel-qep.c                  |  46 ++---
 drivers/counter/interrupt-cnt.c              |  38 ++--
 drivers/counter/microchip-tcb-capture.c      |  44 ++---
 drivers/counter/stm32-lptimer-cnt.c          |  51 ++---
 drivers/counter/stm32-timer-cnt.c            |  48 ++---
 drivers/counter/ti-eqep.c                    |  31 ++--
 include/linux/counter.h                      |  15 +-
 11 files changed, 355 insertions(+), 241 deletions(-)


base-commit: e75a58db41df67e6282104aaae073bc8b43b8dc8
-- 
2.34.1


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

* [PATCH v4 14/23] counter: Update documentation for new counter registration functions
  2021-12-30 15:02 [PATCH v4 00/23] counter: cleanups and device lifetime fixes Uwe Kleine-König
@ 2021-12-30 15:02 ` Uwe Kleine-König
  2021-12-30 16:44 ` [PATCH v4 00/23] counter: cleanups and device lifetime fixes Greg Kroah-Hartman
  1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2021-12-30 15:02 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: linux-iio, linux-kernel, kernel, Jonathan Cameron,
	Jonathan Corbet, linux-doc, William Breathitt Gray

In order to replace the counter registration API also update the
documentation to the new way.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 Documentation/driver-api/generic-counter.rst | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Documentation/driver-api/generic-counter.rst b/Documentation/driver-api/generic-counter.rst
index 1b487a331467..71ccc30e586b 100644
--- a/Documentation/driver-api/generic-counter.rst
+++ b/Documentation/driver-api/generic-counter.rst
@@ -262,11 +262,11 @@ order to communicate with the device: to read and write various Signals
 and Counts, and to set and get the "action mode" and "function mode" for
 various Synapses and Counts respectively.
 
-A defined counter_device structure may be registered to the system by
-passing it to the counter_register function, and unregistered by passing
-it to the counter_unregister function. Similarly, the
-devm_counter_register function may be used if device memory-managed
-registration is desired.
+A counter_device structure is allocated using counter_alloc() and then
+registered to the system by passing it to the counter_add() function, and
+unregistered by passing it to the counter_unregister function. There are
+device managed variants of these functions: devm_counter_alloc() and
+devm_counter_add().
 
 The struct counter_comp structure is used to define counter extensions
 for Signals, Synapses, and Counts.
-- 
2.34.1


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

* Re: [PATCH v4 00/23] counter: cleanups and device lifetime fixes
  2021-12-30 15:02 [PATCH v4 00/23] counter: cleanups and device lifetime fixes Uwe Kleine-König
  2021-12-30 15:02 ` [PATCH v4 14/23] counter: Update documentation for new counter registration functions Uwe Kleine-König
@ 2021-12-30 16:44 ` Greg Kroah-Hartman
  1 sibling, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2021-12-30 16:44 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: linux-iio, linux-kernel, kernel, Jonathan Cameron,
	Patrick Havelange, Kamel Bouhara, linux-arm-kernel,
	Syed Nayyar Waris, Oleksij Rempel, Ahmad Fatoum, Jarkko Nikula,
	Raymond Tan, Felipe Balbi (Intel),
	David Lechner, Fabrice Gasnier, Maxime Coquelin,
	Alexandre Torgue, linux-stm32, Jonathan Corbet, linux-doc

On Thu, Dec 30, 2021 at 04:02:37PM +0100, Uwe Kleine-König wrote:
> Hello,
> 
> On Thu, Dec 30, 2021 at 02:19:25PM +0100, Greg Kroah-Hartman wrote:
> > Please rebase and resend the series against my char-misc-next branch.
> 
> this series is just v3 taken via b4 to collect the latest acks into
> account and then rebased to Greg's char-misc-next.

That worked, now queued up.

thanks,

greg k-h

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

end of thread, other threads:[~2021-12-30 16:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-30 15:02 [PATCH v4 00/23] counter: cleanups and device lifetime fixes Uwe Kleine-König
2021-12-30 15:02 ` [PATCH v4 14/23] counter: Update documentation for new counter registration functions Uwe Kleine-König
2021-12-30 16:44 ` [PATCH v4 00/23] counter: cleanups and device lifetime fixes Greg Kroah-Hartman

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).