]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit824c322129fd1551e32eefdb28b537fab662661a
treef5a5156428313424679037d730cd7a56d84f82be
parent4e4f24dfa9b3eb0c002ca81658c7091383c08f67
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