This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 75da19d72fc698e377ca65b492f72a2b51f76657 Author: Marco Casaroli <[email protected]> AuthorDate: Tue Oct 27 20:38:06 2026 +0100 arch/arm/lpc54xx: Fix the old nxstyle errors of lpc54_ethernet.c. The next commit changes lpc54_eth_ioctl(), and checkpatch checks every file that a change touches. Fix the old nxstyle errors of the file first: the indentation of a case label and of three casts, and the missing blank lines after three declarations. Only white space changes. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- arch/arm/src/lpc54xx/lpc54_ethernet.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/lpc54xx/lpc54_ethernet.c b/arch/arm/src/lpc54xx/lpc54_ethernet.c index b916e799a57..63a8c16dfae 100644 --- a/arch/arm/src/lpc54xx/lpc54_ethernet.c +++ b/arch/arm/src/lpc54xx/lpc54_ethernet.c @@ -2228,10 +2228,11 @@ static int lpc54_eth_ioctl(struct net_driver_s *dev, int cmd, switch (cmd) { #ifdef CONFIG_NETDEV_PHY_IOCTL - case SIOCGMIIPHY: /* Get MII PHY address */ + case SIOCGMIIPHY: /* Get MII PHY address */ { struct mii_ioctl_data_s *req = - (struct mii_ioctl_data_s *)((uintptr_t)arg); + (struct mii_ioctl_data_s *)((uintptr_t)arg); + req->phy_id = CONFIG_LPC54_ETH_PHYADDR; ret = OK; } @@ -2240,7 +2241,8 @@ static int lpc54_eth_ioctl(struct net_driver_s *dev, int cmd, case SIOCGMIIREG: /* Get register from MII PHY */ { struct mii_ioctl_data_s *req = - (struct mii_ioctl_data_s *)((uintptr_t)arg); + (struct mii_ioctl_data_s *)((uintptr_t)arg); + req->val_out = lpc54_phy_read(priv, req->reg_num); ret = OK } @@ -2249,7 +2251,8 @@ static int lpc54_eth_ioctl(struct net_driver_s *dev, int cmd, case SIOCSMIIREG: /* Set register in MII PHY */ { struct mii_ioctl_data_s *req = - (struct mii_ioctl_data_s *)((uintptr_t)arg); + (struct mii_ioctl_data_s *)((uintptr_t)arg); + lpc54_phy_write(priv, req->reg_num, req->val_in); ret = OK }
