ptp: ocp: vectorize the sma accessor functions
authorJonathan Lemon <jonathan.lemon@gmail.com>
Thu, 19 May 2022 21:21:50 +0000 (14:21 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 May 2022 18:39:54 +0000 (11:39 -0700)
commitcaab82cdbfe449c1597ab455c09d0fa514ef6947
treef5a5156428313424679037d730cd7a56d84f82be
parent3f3fe41c0bdfe541aa7aa9a8625efe3bd3ef60cc
ptp: ocp: vectorize the sma accessor functions

Move the SMA get and set functions into an operations vector for
different boards.

Create wrappers for the accessor functions.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_ocp.c