can: sja1000: use common prefix for all sja1000 defines
This is a follow up patch to:
f901b6b
can: sja1000: fix define conflict on SH
That patch fixed a define conflict between the SH architecture and the sja1000
driver, by addind a prefix to one macro only. This patch consistently renames
the prefix of the SJA1000 controller registers from "REG_" to "SJA1000_".
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:

committed by
Marc Kleine-Budde

parent
61f47132dc
commit
06e1d1d718
@@ -168,12 +168,12 @@ static inline int ems_pci_check_chan(const struct sja1000_priv *priv)
|
||||
unsigned char res;
|
||||
|
||||
/* Make sure SJA1000 is in reset mode */
|
||||
priv->write_reg(priv, REG_MOD, 1);
|
||||
priv->write_reg(priv, SJA1000_MOD, 1);
|
||||
|
||||
priv->write_reg(priv, REG_CDR, CDR_PELICAN);
|
||||
priv->write_reg(priv, SJA1000_CDR, CDR_PELICAN);
|
||||
|
||||
/* read reset-values */
|
||||
res = priv->read_reg(priv, REG_CDR);
|
||||
res = priv->read_reg(priv, SJA1000_CDR);
|
||||
|
||||
if (res == CDR_PELICAN)
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user