]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: ocp: add .init function for sma_op vector
authorJonathan Lemon <jonathan.lemon@gmail.com>
Thu, 19 May 2022 21:21:51 +0000 (14:21 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 May 2022 18:39:54 +0000 (11:39 -0700)
commitadcc250d728dbe9d2550a558516e90c723eb3589
treecb14ef35d7a39d49716d8f22d355aed8604f9143
parent824c322129fd1551e32eefdb28b537fab662661a
ptp: ocp: add .init function for sma_op vector

Create an .init function for the op vector, and a corresponding
wrapper function, for different sma mapping setups.

Add a default_fcn to the sma information, and use it when displaying
information for pins which have fixed functions.

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