Commit b9b352e1 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

can: xilinx_can: fix typo prescalar -> prescaler

This patch fixes the typo prescalar -> prescaler.

Link: https://lore.kernel.org/all/20220609111424.3819039-1-mkl@pengutronix.deReported-by: default avatarVincent MAILHOL <mailhol.vincent@wanadoo.fr>
Cc: Srinivas Neeli <srinivas.neeli@xilinx.com>
Cc: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
Cc: Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 1010a8fa
...@@ -51,7 +51,7 @@ enum xcan_reg { ...@@ -51,7 +51,7 @@ enum xcan_reg {
/* only on CAN FD cores */ /* only on CAN FD cores */
XCAN_F_BRPR_OFFSET = 0x088, /* Data Phase Baud Rate XCAN_F_BRPR_OFFSET = 0x088, /* Data Phase Baud Rate
* Prescalar * Prescaler
*/ */
XCAN_F_BTR_OFFSET = 0x08C, /* Data Phase Bit Timing */ XCAN_F_BTR_OFFSET = 0x08C, /* Data Phase Bit Timing */
XCAN_TRR_OFFSET = 0x0090, /* TX Buffer Ready Request */ XCAN_TRR_OFFSET = 0x0090, /* TX Buffer Ready Request */
...@@ -430,7 +430,7 @@ static int xcan_set_bittiming(struct net_device *ndev) ...@@ -430,7 +430,7 @@ static int xcan_set_bittiming(struct net_device *ndev)
return -EPERM; return -EPERM;
} }
/* Setting Baud Rate prescalar value in BRPR Register */ /* Setting Baud Rate prescaler value in BRPR Register */
btr0 = (bt->brp - 1); btr0 = (bt->brp - 1);
/* Setting Time Segment 1 in BTR Register */ /* Setting Time Segment 1 in BTR Register */
...@@ -447,7 +447,7 @@ static int xcan_set_bittiming(struct net_device *ndev) ...@@ -447,7 +447,7 @@ static int xcan_set_bittiming(struct net_device *ndev)
if (priv->devtype.cantype == XAXI_CANFD || if (priv->devtype.cantype == XAXI_CANFD ||
priv->devtype.cantype == XAXI_CANFD_2_0) { priv->devtype.cantype == XAXI_CANFD_2_0) {
/* Setting Baud Rate prescalar value in F_BRPR Register */ /* Setting Baud Rate prescaler value in F_BRPR Register */
btr0 = dbt->brp - 1; btr0 = dbt->brp - 1;
if (can_tdc_is_enabled(&priv->can)) { if (can_tdc_is_enabled(&priv->can)) {
if (priv->devtype.cantype == XAXI_CANFD) if (priv->devtype.cantype == XAXI_CANFD)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment