Files
linux-st/drivers
Uwe Kleine-König b56346ddbd counter: Use container_of instead of drvdata to track counter_device
The counter core uses drvdata to find a struct counter_device from a
struct device. However as the device is a member of struct counter_device,
the lookup can be done faster (and a bit type safe) using container_of.

There are no other users of drvdata, so the call to dev_set_drvdata can
go away, too.

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>
Link: https://lore.kernel.org/r/20211230150300.72196-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-30 17:44:05 +01:00
..
2021-11-26 19:45:31 +01:00
2021-12-09 11:20:47 +09:00
2021-12-21 15:10:09 +00:00
2021-12-09 20:06:54 -08:00
2021-11-26 22:54:47 +01:00
2021-11-16 14:41:23 +01:00
2021-12-29 10:54:50 +01:00
2021-11-30 11:41:49 -07:00