Commit 8817c2d0 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Greg Kroah-Hartman

counter: ti-eqep: Convert to counter_priv() wrapper

This is a straight forward conversion to the new counter_priv() wrapper.
Acked-by: default avatarWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Acked-by: default avatarDavid Lechner <david@lechnology.com>
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20211230150300.72196-11-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1f1b40c0
...@@ -89,7 +89,7 @@ struct ti_eqep_cnt { ...@@ -89,7 +89,7 @@ struct ti_eqep_cnt {
static struct ti_eqep_cnt *ti_eqep_count_from_counter(struct counter_device *counter) static struct ti_eqep_cnt *ti_eqep_count_from_counter(struct counter_device *counter)
{ {
return container_of(counter, struct ti_eqep_cnt, counter); return counter_priv(counter);
} }
static int ti_eqep_count_read(struct counter_device *counter, static int ti_eqep_count_read(struct counter_device *counter,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment