Hello, this serie's goal is to fix struct device lifetime issues as pointed out in patch #13. The patches up to patch #12 are only prepatory and cleanup patches. Patch #13 provides the needed functions to fix the issues in all drivers (patches #15 to #22). The last patch removes the then unused API calls. Best regards Uwe 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 | 88 +++++----- drivers/counter/counter-core.c | 168 +++++++++++++------ drivers/counter/ftm-quaddec.c | 37 ++-- 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 | 47 +++--- include/linux/counter.h | 15 +- 11 files changed, 345 insertions(+), 247 deletions(-) base-commit: a7904a538933c525096ca2ccde1e60d0ee62c08e -- 2.33.0