diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-29 06:01:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-05-29 15:22:46 -0400 |
commit | acba7bb3c246618c8af895a548ec1b0d3da050d0 (patch) | |
tree | f8feb3cfdad6921f941572c8609d20a308c24acf /drivers/net/wireless/p54 | |
parent | b6c32f88740013b78eee68a604678b548750510f (diff) |
net: wireless: p54spi: Fix commenting style
Make the commenting style consistent with networking block comment
style as suggested by checkpatch.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54')
-rw-r--r-- | drivers/net/wireless/p54/p54spi.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c index 146e6530ae29..7fc46f26cf2b 100644 --- a/drivers/net/wireless/p54/p54spi.c +++ b/drivers/net/wireless/p54/p54spi.c | |||
@@ -42,8 +42,7 @@ | |||
42 | 42 | ||
43 | MODULE_FIRMWARE("3826.arm"); | 43 | MODULE_FIRMWARE("3826.arm"); |
44 | 44 | ||
45 | /* | 45 | /* gpios should be handled in board files and provided via platform data, |
46 | * gpios should be handled in board files and provided via platform data, | ||
47 | * but because it's currently impossible for p54spi to have a header file | 46 | * but because it's currently impossible for p54spi to have a header file |
48 | * in include/linux, let's use module paramaters for now | 47 | * in include/linux, let's use module paramaters for now |
49 | */ | 48 | */ |
@@ -191,8 +190,7 @@ static int p54spi_request_eeprom(struct ieee80211_hw *dev) | |||
191 | const struct firmware *eeprom; | 190 | const struct firmware *eeprom; |
192 | int ret; | 191 | int ret; |
193 | 192 | ||
194 | /* | 193 | /* allow users to customize their eeprom. |
195 | * allow users to customize their eeprom. | ||
196 | */ | 194 | */ |
197 | 195 | ||
198 | ret = request_firmware(&eeprom, "3826.eeprom", &priv->spi->dev); | 196 | ret = request_firmware(&eeprom, "3826.eeprom", &priv->spi->dev); |
@@ -285,8 +283,7 @@ static void p54spi_power_on(struct p54s_priv *priv) | |||
285 | gpio_set_value(p54spi_gpio_power, 1); | 283 | gpio_set_value(p54spi_gpio_power, 1); |
286 | enable_irq(gpio_to_irq(p54spi_gpio_irq)); | 284 | enable_irq(gpio_to_irq(p54spi_gpio_irq)); |
287 | 285 | ||
288 | /* | 286 | /* need to wait a while before device can be accessed, the length |
289 | * need to wait a while before device can be accessed, the length | ||
290 | * is just a guess | 287 | * is just a guess |
291 | */ | 288 | */ |
292 | msleep(10); | 289 | msleep(10); |
@@ -365,7 +362,8 @@ static int p54spi_rx(struct p54s_priv *priv) | |||
365 | /* Firmware may insert up to 4 padding bytes after the lmac header, | 362 | /* Firmware may insert up to 4 padding bytes after the lmac header, |
366 | * but it does not amend the size of SPI data transfer. | 363 | * but it does not amend the size of SPI data transfer. |
367 | * Such packets has correct data size in header, thus referencing | 364 | * Such packets has correct data size in header, thus referencing |
368 | * past the end of allocated skb. Reserve extra 4 bytes for this case */ | 365 | * past the end of allocated skb. Reserve extra 4 bytes for this case |
366 | */ | ||
369 | skb = dev_alloc_skb(len + 4); | 367 | skb = dev_alloc_skb(len + 4); |
370 | if (!skb) { | 368 | if (!skb) { |
371 | p54spi_sleep(priv); | 369 | p54spi_sleep(priv); |
@@ -383,7 +381,8 @@ static int p54spi_rx(struct p54s_priv *priv) | |||
383 | } | 381 | } |
384 | p54spi_sleep(priv); | 382 | p54spi_sleep(priv); |
385 | /* Put additional bytes to compensate for the possible | 383 | /* Put additional bytes to compensate for the possible |
386 | * alignment-caused truncation */ | 384 | * alignment-caused truncation |
385 | */ | ||
387 | skb_put(skb, 4); | 386 | skb_put(skb, 4); |
388 | 387 | ||
389 | if (p54_rx(priv->hw, skb) == 0) | 388 | if (p54_rx(priv->hw, skb) == 0) |