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

mtd: cfi_cmdset_0002: Fix coding style issues

This patch fixes mainly to remove unneeded spaces after '(' and before ')'.
Also some indentation errors are fixed.

Signed-off-by: Tokunori Ikegami <ikegami@allied-telesis.co.jp>
Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>

authored by

Tokunori Ikegami and committed by
Boris Brezillon
ea092fb3 237ea0d4

+13 -13
+13 -13
drivers/mtd/chips/cfi_cmdset_0002.c
··· 44 44 45 45 #define MAX_WORD_RETRIES 3 46 46 47 - #define SST49LF004B 0x0060 48 - #define SST49LF040B 0x0050 47 + #define SST49LF004B 0x0060 48 + #define SST49LF040B 0x0050 49 49 #define SST49LF008A 0x005a 50 50 #define AT49BV6416 0x00d6 51 51 ··· 207 207 struct map_info *map = mtd->priv; 208 208 struct cfi_private *cfi = map->fldrv_priv; 209 209 if (cfi->cfiq->BufWriteTimeoutTyp) { 210 - pr_debug("Using buffer write method\n" ); 210 + pr_debug("Using buffer write method\n"); 211 211 mtd->_write = cfi_amdstd_write_buffers; 212 212 } 213 213 } ··· 1562 1562 * depending of the conditions. The ' + 1' is to avoid having a 1563 1563 * timeout of 0 jiffies if HZ is smaller than 1000. 1564 1564 */ 1565 - unsigned long uWriteTimeout = ( HZ / 1000 ) + 1; 1565 + unsigned long uWriteTimeout = (HZ / 1000) + 1; 1566 1566 int ret = 0; 1567 1567 map_word oldd; 1568 1568 int retry_cnt = 0; ··· 1577 1577 } 1578 1578 1579 1579 pr_debug("MTD %s(): WRITE 0x%.8lx(0x%.8lx)\n", 1580 - __func__, adr, datum.x[0] ); 1580 + __func__, adr, datum.x[0]); 1581 1581 1582 1582 if (mode == FL_OTP_WRITE) 1583 1583 otp_enter(map, chip, adr, map_bankwidth(map)); ··· 1643 1643 /* Did we succeed? */ 1644 1644 if (!chip_good(map, adr, datum)) { 1645 1645 /* reset on all failures. */ 1646 - map_write( map, CMD(0xF0), chip->start ); 1646 + map_write(map, CMD(0xF0), chip->start); 1647 1647 /* FIXME - should have reset delay before continuing */ 1648 1648 1649 1649 if (++retry_cnt <= MAX_WORD_RETRIES) ··· 1821 1821 datum = map_word_load(map, buf); 1822 1822 1823 1823 pr_debug("MTD %s(): WRITE 0x%.8lx(0x%.8lx)\n", 1824 - __func__, adr, datum.x[0] ); 1824 + __func__, adr, datum.x[0]); 1825 1825 1826 1826 XIP_INVAL_CACHED_RANGE(map, adr, len); 1827 1827 ENABLE_VPP(map); ··· 2251 2251 } 2252 2252 2253 2253 pr_debug("MTD %s(): ERASE 0x%.8lx\n", 2254 - __func__, chip->start ); 2254 + __func__, chip->start); 2255 2255 2256 2256 XIP_INVAL_CACHED_RANGE(map, adr, map->size); 2257 2257 ENABLE_VPP(map); ··· 2297 2297 2298 2298 if (time_after(jiffies, timeo)) { 2299 2299 printk(KERN_WARNING "MTD %s(): software timeout\n", 2300 - __func__ ); 2300 + __func__); 2301 2301 break; 2302 2302 } 2303 2303 ··· 2307 2307 /* Did we succeed? */ 2308 2308 if (!chip_good(map, adr, map_word_ff(map))) { 2309 2309 /* reset on all failures. */ 2310 - map_write( map, CMD(0xF0), chip->start ); 2310 + map_write(map, CMD(0xF0), chip->start); 2311 2311 /* FIXME - should have reset delay before continuing */ 2312 2312 2313 2313 ret = -EIO; ··· 2340 2340 } 2341 2341 2342 2342 pr_debug("MTD %s(): ERASE 0x%.8lx\n", 2343 - __func__, adr ); 2343 + __func__, adr); 2344 2344 2345 2345 XIP_INVAL_CACHED_RANGE(map, adr, len); 2346 2346 ENABLE_VPP(map); ··· 2389 2389 if (time_after(jiffies, timeo)) { 2390 2390 xip_enable(map, chip, adr); 2391 2391 printk(KERN_WARNING "MTD %s(): software timeout\n", 2392 - __func__ ); 2392 + __func__); 2393 2393 break; 2394 2394 } 2395 2395 ··· 2399 2399 /* Did we succeed? */ 2400 2400 if (!chip_good(map, adr, map_word_ff(map))) { 2401 2401 /* reset on all failures. */ 2402 - map_write( map, CMD(0xF0), chip->start ); 2402 + map_write(map, CMD(0xF0), chip->start); 2403 2403 /* FIXME - should have reset delay before continuing */ 2404 2404 2405 2405 ret = -EIO;