summaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>2021-09-18 11:56:37 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2021-10-24 16:24:29 +0200
commitfa759a9395ea81c17db613dde43c46f0607df7e7 (patch)
tree1706f3ba2d84c6a7c0c1748031ff6c0a2859cec4 /drivers/net/can
parentcan: netlink: add can_priv::do_get_auto_tdcv() to retrieve tdcv from device (diff)
downloadlinux-fa759a9395ea81c17db613dde43c46f0607df7e7.tar.xz
linux-fa759a9395ea81c17db613dde43c46f0607df7e7.zip
can: dev: add can_tdc_get_relative_tdco() helper function
struct can_tdc::tdco represents the absolute offset from TDCV. Some controllers use instead an offset relative to the Sample Point (SP) such that: | SSP = TDCV + absolute TDCO | = TDCV + SP + relative TDCO Consequently: | relative TDCO = absolute TDCO - SP The function can_tdc_get_relative_tdco() allow to retrieve this relative TDCO value. Link: https://lore.kernel.org/all/20210918095637.20108-7-mailhol.vincent@wanadoo.fr CC: Stefan Mätje <Stefan.Maetje@esd.eu> Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can')
0 files changed, 0 insertions, 0 deletions