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

staging: gs_fpgaboot: Fixed code style issues

Fixed missing a blank line after declarations warning

Signed-off-by: Rocco Folino <lordzen87@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rocco Folino and committed by
Greg Kroah-Hartman
5535c4dd f3c5261e

+7 -1
+1 -1
drivers/staging/gs_fpgaboot/gs_fpgaboot.c
··· 214 214 { 215 215 char *bitdata; 216 216 int size, i, cnt; 217 - cnt = 0; 218 217 218 + cnt = 0; 219 219 bitdata = (char *)fimage->fpgadata; 220 220 size = fimage->lendata; 221 221
+6
drivers/staging/gs_fpgaboot/io.c
··· 44 44 void xl_shift_cclk(int count) 45 45 { 46 46 int i; 47 + 47 48 for (i = 0; i < count; i++) { 48 49 xl_cclk_b(1); 49 50 xl_cclk_b(0); ··· 86 85 static inline unsigned char bitswap(unsigned char s) 87 86 { 88 87 unsigned char d; 88 + 89 89 d = (((s&0x80)>>7) | ((s&0x40)>>5) | ((s&0x20)>>3) | ((s&0x10)>>1) | 90 90 ((s&0x08)<<1) | ((s&0x04)<<3) | ((s&0x02)<<5) | ((s&0x01)<<7)); 91 91 return d; ··· 137 135 static inline void gpio_set_value(int32_t port, uint32_t gpio, uint32_t value) 138 136 { 139 137 int32_t g; 138 + 140 139 g = 31 - gpio; 141 140 if (value) 142 141 mpc85xx_gpio_set_high(port, 1U << g); ··· 148 145 static inline int gpio_get_value(int32_t port, uint32_t gpio) 149 146 { 150 147 int32_t g; 148 + 151 149 g = 31 - gpio; 152 150 return !!mpc85xx_gpio_get(port, 1U << g); 153 151 } ··· 188 184 static inline uint32_t bit_remap_byte0(uint32_t s) 189 185 { 190 186 uint32_t d; 187 + 191 188 d = (((s&0x80)>>7) | ((s&0x40)>>5) | ((s&0x20)>>3) | ((s&0x10)>>1) | 192 189 ((s&0x08)<<1) | ((s&0x04)<<3) | ((s&0x02)<<6) | ((s&0x01)<<9)); 193 190 return d; ··· 200 195 static inline void byte0_out(unsigned char data) 201 196 { 202 197 uint32_t swap32; 198 + 203 199 swap32 = bit_remap_byte0((uint32_t) data) << 8; 204 200 205 201 mpc85xx_gpio_set(0, 0x0002BF00, (uint32_t) swap32);