Skip to content

Commit 8817c2d

Browse files
Uwe Kleine-Königgregkh
authored andcommitted
counter: ti-eqep: Convert to counter_priv() wrapper
This is a straight forward conversion to the new counter_priv() wrapper. Acked-by: William Breathitt Gray <[email protected]> Acked-by: David Lechner <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1f1b40c commit 8817c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/counter/ti-eqep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ struct ti_eqep_cnt {
8989

9090
static struct ti_eqep_cnt *ti_eqep_count_from_counter(struct counter_device *counter)
9191
{
92-
return container_of(counter, struct ti_eqep_cnt, counter);
92+
return counter_priv(counter);
9393
}
9494

9595
static int ti_eqep_count_read(struct counter_device *counter,

0 commit comments

Comments
 (0)