Date: Wed, 10 Dec 2014 11:35:10 +0000 (UTC) From: Ruslan Bukin <br@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r275676 - head/sys/dev/mii Message-ID: <201412101135.sBABZAG8026472@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: br Date: Wed Dec 10 11:35:10 2014 New Revision: 275676 URL: https://svnweb.freebsd.org/changeset/base/275676 Log: o Put () for p to avoid unexpected macro expansion o style(9) fix Submitted by: Yonghyeon PYUN <pyunyh@gmail.com> Modified: head/sys/dev/mii/micphy.c Modified: head/sys/dev/mii/micphy.c ============================================================================== --- head/sys/dev/mii/micphy.c Wed Dec 10 11:21:52 2014 (r275675) +++ head/sys/dev/mii/micphy.c Wed Dec 10 11:35:10 2014 (r275676) @@ -68,7 +68,7 @@ __FBSDID("$FreeBSD$"); #define MII_KSZPHY_RX_DATA_PAD_SKEW 0x105 #define MII_KSZPHY_TX_DATA_PAD_SKEW 0x106 -#define PS_TO_REG(p) (p / 200) +#define PS_TO_REG(p) ((p) / 200) static int micphy_probe(device_t); static int micphy_attach(device_t); @@ -104,7 +104,8 @@ static const struct mii_phy_funcs micphy mii_phy_reset }; -static void micphy_write(struct mii_softc *sc, uint32_t reg, uint32_t val) +static void +micphy_write(struct mii_softc *sc, uint32_t reg, uint32_t val) { PHY_WRITE(sc, MII_KSZPHY_EXTREG, KSZPHY_EXTREG_WRITE | reg);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412101135.sBABZAG8026472>