Skip to content

Commit 5535c4d

Browse files
Rocco Folinogregkh
authored andcommitted
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>
1 parent f3c5261 commit 5535c4d

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎drivers/staging/gs_fpgaboot/gs_fpgaboot.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ static int gs_download_image(struct fpgaimage *fimage, enum wbus bus_bytes)
214214
{
215215
char *bitdata;
216216
int size, i, cnt;
217-
cnt = 0;
218217

218+
cnt = 0;
219219
bitdata = (char *)fimage->fpgadata;
220220
size = fimage->lendata;
221221

‎drivers/staging/gs_fpgaboot/io.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ static inline void xl_cclk_b(int32_t i);
4444
void xl_shift_cclk(int count)
4545
{
4646
int i;
47+
4748
for (i = 0; i < count; i++) {
4849
xl_cclk_b(1);
4950
xl_cclk_b(0);
@@ -85,6 +86,7 @@ void xl_shift_bytes_out(enum wbus bus_byte, unsigned char *pdata)
8586
static inline unsigned char bitswap(unsigned char s)
8687
{
8788
unsigned char d;
89+
8890
d = (((s&0x80)>>7) | ((s&0x40)>>5) | ((s&0x20)>>3) | ((s&0x10)>>1) |
8991
((s&0x08)<<1) | ((s&0x04)<<3) | ((s&0x02)<<5) | ((s&0x01)<<7));
9092
return d;
@@ -135,6 +137,7 @@ static inline void mpc85xx_gpio_set_high(int32_t port, uint32_t gpios)
135137
static inline void gpio_set_value(int32_t port, uint32_t gpio, uint32_t value)
136138
{
137139
int32_t g;
140+
138141
g = 31 - gpio;
139142
if (value)
140143
mpc85xx_gpio_set_high(port, 1U << g);
@@ -145,6 +148,7 @@ static inline void gpio_set_value(int32_t port, uint32_t gpio, uint32_t value)
145148
static inline int gpio_get_value(int32_t port, uint32_t gpio)
146149
{
147150
int32_t g;
151+
148152
g = 31 - gpio;
149153
return !!mpc85xx_gpio_get(port, 1U << g);
150154
}
@@ -184,6 +188,7 @@ int xl_get_done_b(void)
184188
static inline uint32_t bit_remap_byte0(uint32_t s)
185189
{
186190
uint32_t d;
191+
187192
d = (((s&0x80)>>7) | ((s&0x40)>>5) | ((s&0x20)>>3) | ((s&0x10)>>1) |
188193
((s&0x08)<<1) | ((s&0x04)<<3) | ((s&0x02)<<6) | ((s&0x01)<<9));
189194
return d;
@@ -195,6 +200,7 @@ static inline uint32_t bit_remap_byte0(uint32_t s)
195200
static inline void byte0_out(unsigned char data)
196201
{
197202
uint32_t swap32;
203+
198204
swap32 = bit_remap_byte0((uint32_t) data) << 8;
199205

200206
mpc85xx_gpio_set(0, 0x0002BF00, (uint32_t) swap32);

0 commit comments

Comments
 (0)