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

spi: butterfly: Fix checkpatch issue

Fix the following checkpatch errors and warnings.

ERROR: space required before the open brace '{'
ERROR: space required after that close brace '}'
ERROR: space required before the open parenthesis '('
ERROR: do not use C99 // comments
WARNING: sizeof *pp should be sizeof(*pp)

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Jingoo Han and committed by
Mark Brown
ac8ed236 61e6cfa8

+6 -7
+6 -7
drivers/spi/spi-butterfly.c
··· 147 147 148 148 /* we only needed to implement one mode here, and choose SPI_MODE_0 */ 149 149 150 - #define spidelay(X) do{}while(0) 151 - //#define spidelay ndelay 150 + #define spidelay(X) do { } while (0) 151 + /* #define spidelay ndelay */ 152 152 153 153 #include "spi-bitbang-txrx.h" 154 154 ··· 171 171 /* sector 0 = 8 pages * 264 bytes/page (1 block) 172 172 * sector 1 = 248 pages * 264 bytes/page 173 173 */ 174 - .name = "bookkeeping", // 66 KB 174 + .name = "bookkeeping", /* 66 KB */ 175 175 .offset = 0, 176 176 .size = (8 + 248) * 264, 177 - // .mask_flags = MTD_WRITEABLE, 177 + /* .mask_flags = MTD_WRITEABLE, */ 178 178 }, { 179 179 /* sector 2 = 256 pages * 264 bytes/page 180 180 * sectors 3-5 = 512 pages * 264 bytes/page 181 181 */ 182 - .name = "filesystem", // 462 KB 182 + .name = "filesystem", /* 462 KB */ 183 183 .offset = MTDPART_OFS_APPEND, 184 184 .size = MTDPART_SIZ_FULL, 185 185 } }; ··· 209 209 * and no way to be selective about what it binds to. 210 210 */ 211 211 212 - master = spi_alloc_master(dev, sizeof *pp); 212 + master = spi_alloc_master(dev, sizeof(*pp)); 213 213 if (!master) { 214 214 status = -ENOMEM; 215 215 goto done; ··· 289 289 pr_debug("%s: dataflash at %s\n", p->name, 290 290 dev_name(&pp->dataflash->dev)); 291 291 292 - // dev_info(_what?_, ...) 293 292 pr_info("%s: AVR Butterfly\n", p->name); 294 293 butterfly = pp; 295 294 return;