Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

DSA: Convert spaces to tabs where appropriate

Fix DSA whitespace issues reported by checkpatch.pl

Signed-off-by: Barry Grussling <barry@grussling.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Barry Grussling and committed by
David S. Miller
85686581 ab381a93

+23 -23
+22 -22
drivers/net/dsa/mv88e6xxx.c
··· 205 205 206 206 timeout = jiffies + 1 * HZ; 207 207 while (time_before(jiffies, timeout)) { 208 - ret = REG_READ(REG_GLOBAL, 0x00); 208 + ret = REG_READ(REG_GLOBAL, 0x00); 209 209 usleep_range(1000, 2000); 210 - if ((ret & 0xc000) != 0xc000) 211 - return 0; 210 + if ((ret & 0xc000) != 0xc000) 211 + return 0; 212 212 } 213 213 214 214 return -ETIMEDOUT; ··· 224 224 225 225 timeout = jiffies + 1 * HZ; 226 226 while (time_before(jiffies, timeout)) { 227 - ret = REG_READ(REG_GLOBAL, 0x00); 227 + ret = REG_READ(REG_GLOBAL, 0x00); 228 228 usleep_range(1000, 2000); 229 - if ((ret & 0xc000) == 0xc000) 230 - return 0; 229 + if ((ret & 0xc000) == 0xc000) 230 + return 0; 231 231 } 232 232 233 233 return -ETIMEDOUT; ··· 239 239 240 240 ps = container_of(ugly, struct mv88e6xxx_priv_state, ppu_work); 241 241 if (mutex_trylock(&ps->ppu_mutex)) { 242 - struct dsa_switch *ds = ((struct dsa_switch *)ps) - 1; 242 + struct dsa_switch *ds = ((struct dsa_switch *)ps) - 1; 243 243 244 - if (mv88e6xxx_ppu_enable(ds) == 0) 245 - ps->ppu_disabled = 0; 246 - mutex_unlock(&ps->ppu_mutex); 244 + if (mv88e6xxx_ppu_enable(ds) == 0) 245 + ps->ppu_disabled = 0; 246 + mutex_unlock(&ps->ppu_mutex); 247 247 } 248 248 } 249 249 ··· 267 267 * it. 268 268 */ 269 269 if (!ps->ppu_disabled) { 270 - ret = mv88e6xxx_ppu_disable(ds); 271 - if (ret < 0) { 272 - mutex_unlock(&ps->ppu_mutex); 273 - return ret; 274 - } 275 - ps->ppu_disabled = 1; 270 + ret = mv88e6xxx_ppu_disable(ds); 271 + if (ret < 0) { 272 + mutex_unlock(&ps->ppu_mutex); 273 + return ret; 274 + } 275 + ps->ppu_disabled = 1; 276 276 } else { 277 - del_timer(&ps->ppu_timer); 278 - ret = 0; 277 + del_timer(&ps->ppu_timer); 278 + ret = 0; 279 279 } 280 280 281 281 return ret; ··· 307 307 308 308 ret = mv88e6xxx_ppu_access_get(ds); 309 309 if (ret >= 0) { 310 - ret = mv88e6xxx_reg_read(ds, addr, regnum); 311 - mv88e6xxx_ppu_access_put(ds); 310 + ret = mv88e6xxx_reg_read(ds, addr, regnum); 311 + mv88e6xxx_ppu_access_put(ds); 312 312 } 313 313 314 314 return ret; ··· 321 321 322 322 ret = mv88e6xxx_ppu_access_get(ds); 323 323 if (ret >= 0) { 324 - ret = mv88e6xxx_reg_write(ds, addr, regnum, val); 325 - mv88e6xxx_ppu_access_put(ds); 324 + ret = mv88e6xxx_reg_write(ds, addr, regnum, val); 325 + mv88e6xxx_ppu_access_put(ds); 326 326 } 327 327 328 328 return ret;
+1 -1
drivers/net/dsa/mv88e6xxx.h
··· 49 49 int __mv88e6xxx_reg_read(struct mii_bus *bus, int sw_addr, int addr, int reg); 50 50 int mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg); 51 51 int __mv88e6xxx_reg_write(struct mii_bus *bus, int sw_addr, int addr, 52 - int reg, u16 val); 52 + int reg, u16 val); 53 53 int mv88e6xxx_reg_write(struct dsa_switch *ds, int addr, int reg, u16 val); 54 54 int mv88e6xxx_config_prio(struct dsa_switch *ds); 55 55 int mv88e6xxx_set_addr_direct(struct dsa_switch *ds, u8 *addr);