diff options
author | Marc Kleine-Budde | 2017-01-06 11:12:41 +0100 |
---|---|---|
committer | Marc Kleine-Budde | 2017-01-24 13:52:00 +0100 |
commit | c3606d438a14faa8319eccb75b9502960a97af16 (patch) | |
tree | 04c944edb43845d96e2f66a060f2196299cd4280 /include/linux/can | |
parent | 12a6075cabc0d9ffbc0366b44daa22f278606312 (diff) |
can: dev: can_changelink: allow to set bitrate on devices not providing {data_,}bittiming_const
Until commit
08da7da41ea4 can: provide a separate bittiming_const parameter to
bittiming functions
it was possible to have devices not providing bittiming_const. This can
be used for hardware that only support pre-defined fixed bitrates.
Although no mainline driver is using this feature so far.
This patch re-introduces this feature for the bitrate and the data
bitrate (of CANFD controllers). The driver can specify the
{data_,}bittiming_const (if the bittiming parameters should be
calculated from the bittiming_const) as before or no
{data_,}bittiming_const but implement the do_set_{data,}bittiming
callback.
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'include/linux/can')
0 files changed, 0 insertions, 0 deletions