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

staging: wfx: fix comments styles

Unify all comments of the wfx driver to use the same comment style.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20210913130203.1903622-29-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jérôme Pouiller and committed by
Greg Kroah-Hartman
58de6994 63aac5db

+8 -18
+3 -8
drivers/staging/wfx/bh.c
··· 265 265 wdev->hif.tx_buffers_used, release_chip); 266 266 } 267 267 268 - /* 269 - * An IRQ from chip did occur 270 - */ 268 + /* An IRQ from chip did occur */ 271 269 void wfx_bh_request_rx(struct wfx_dev *wdev) 272 270 { 273 271 u32 cur, prev; ··· 283 285 prev, cur); 284 286 } 285 287 286 - /* 287 - * Driver want to send data 288 - */ 288 + /* Driver want to send data */ 289 289 void wfx_bh_request_tx(struct wfx_dev *wdev) 290 290 { 291 291 queue_work(system_highpri_wq, &wdev->hif.bh); 292 292 } 293 293 294 - /* 295 - * If IRQ is not available, this function allow to manually poll the control 294 + /* If IRQ is not available, this function allow to manually poll the control 296 295 * register and simulate an IRQ ahen an event happened. 297 296 * 298 297 * Note that the device has a bug: If an IRQ raise while host read control
+2 -4
drivers/staging/wfx/bus_spi.c
··· 38 38 bool need_swab; 39 39 }; 40 40 41 - /* 42 - * The chip reads 16bits of data at time and place them directly into (little 41 + /* The chip reads 16bits of data at time and place them directly into (little 43 42 * endian) CPU register. So, the chip expects bytes order to be "B1 B0 B3 B2" 44 43 * (while LE is "B0 B1 B2 B3" and BE is "B3 B2 B1 B0") 45 44 * ··· 240 241 return 0; 241 242 } 242 243 243 - /* 244 - * For dynamic driver binding, kernel does not use OF to match driver. It only 244 + /* For dynamic driver binding, kernel does not use OF to match driver. It only 245 245 * use modalias and modalias is a copy of 'compatible' DT node with vendor 246 246 * stripped. 247 247 */
+1 -2
drivers/staging/wfx/fwio.c
··· 69 69 [ERR_MAC_KEY] = "MAC key not initialized", 70 70 }; 71 71 72 - /* 73 - * request_firmware() allocate data using vmalloc(). It is not compatible with 72 + /* request_firmware() allocate data using vmalloc(). It is not compatible with 74 73 * underlying hardware that use DMA. Function below detect this case and 75 74 * allocate a bounce buffer if necessary. 76 75 *
+1 -2
drivers/staging/wfx/main.h
··· 23 23 const char *file_fw; 24 24 const char *file_pds; 25 25 struct gpio_desc *gpio_wakeup; 26 - /* 27 - * if true HIF D_out is sampled on the rising edge of the clock 26 + /* if true HIF D_out is sampled on the rising edge of the clock 28 27 * (intended to be used in 50Mhz SDIO) 29 28 */ 30 29 bool use_rising_clk;
+1 -2
drivers/staging/wfx/scan.c
··· 85 85 return ret; 86 86 } 87 87 88 - /* 89 - * It is not really necessary to run scan request asynchronously. However, 88 + /* It is not really necessary to run scan request asynchronously. However, 90 89 * there is a bug in "iw scan" when ieee80211_scan_completed() is called before 91 90 * wfx_hw_scan() return 92 91 */