ptp: Move from simple ida to xarray
authorKory Maincent <kory.maincent@bootlin.com>
Mon, 11 Mar 2024 14:47:29 +0000 (15:47 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Mar 2024 23:03:15 +0000 (16:03 -0700)
commitf095fefacdd35b4ea97dc6d88d054f2749a73d07
tree87ca309bee12dd1ae57aa147dc7abfdbe13d2220
parent195f88c57737f16217b5dece054a4cfd74c33550
ptp: Move from simple ida to xarray

Move from simple ida to xarray for storing and loading the ptp_clock
pointer. This prepares support for future hardware timestamp selection by
being able to link the ptp clock index to its pointer.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Link: https://lore.kernel.org/r/20240311144730.1239594-1-kory.maincent@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_clock.c