ptp: ocp: add tod_correction attribute
authorVadim Fedorenko <vadfed@fb.com>
Wed, 2 Mar 2022 21:34:57 +0000 (13:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2022 14:42:46 +0000 (14:42 +0000)
commit44a412d13b31fdfdb79e76f9c959e83f86dfe578
treeadd5bbb6efd53f3abd62f6f257856c9b74052b8e
parent2f23f486cf626a9a2ea70da0dac93c63e89f6595
ptp: ocp: add tod_correction attribute

TOD correction register is used to compensate for leap seconds in
different domains.  Export it as an attribute with write access.

Signed-off-by: Vadim Fedorenko <vadfed@fb.com>
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_ocp.c