[PATCHv2] staging: amso1100: change occurrences of foo* to foo *

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As per the Linux coding style, when declaring a pointer or a
function that returns a pointer, the use of '*' should be
adjacent to the data name or function name and not to the type
name.

Signed-off-by: Ivan Radanov Ivanov <ivanradanov@xxxxxxxxxxx>
---
 drivers/staging/amso1100/c2_ae.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/amso1100/c2_ae.c b/drivers/staging/amso1100/c2_ae.c
index cedda25..24faa77 100644
--- a/drivers/staging/amso1100/c2_ae.c
+++ b/drivers/staging/amso1100/c2_ae.c
@@ -66,9 +66,9 @@ static int c2_convert_cm_status(u32 c2_status)
 	}
 }
 
-static const char* to_event_str(int event)
+static const char *to_event_str(int event)
 {
-	static const char* event_str[] = {
+	static const char *event_str[] = {
 		"CCAE_REMOTE_SHUTDOWN",
 		"CCAE_ACTIVE_CONNECT_RESULTS",
 		"CCAE_CONNECTION_REQUEST",
@@ -244,7 +244,7 @@ void c2_ae_event(struct c2_dev *c2dev, u32 mq_index)
 		case CCAE_LLP_CLOSE_COMPLETE:
 		case CCAE_LLP_CONNECTION_RESET:
 		case CCAE_LLP_CONNECTION_LOST:
-			BUG_ON(cm_id->event_handler==(void*)0x6b6b6b6b);
+			BUG_ON(cm_id->event_handler==(void *)0x6b6b6b6b);
 
 			spin_lock_irqsave(&qp->lock, flags);
 			if (qp->cm_id) {
@@ -282,7 +282,7 @@ void c2_ae_event(struct c2_dev *c2dev, u32 mq_index)
 			break;
 		}
 		cm_event.event = IW_CM_EVENT_CONNECT_REQUEST;
-		cm_event.provider_data = (void*)(unsigned long)req->cr_handle;
+		cm_event.provider_data = (void *)(unsigned long)req->cr_handle;
 		laddr->sin_addr.s_addr = req->laddr;
 		raddr->sin_addr.s_addr = req->raddr;
 		laddr->sin_port = req->lport;
-- 
2.5.0




_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux