diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-21 07:49:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-21 09:03:16 -0400 |
commit | dfef84fc135832ad5c270758b6834fcb4bf448fc (patch) | |
tree | bcf5373af316c462196221b60072f02ea387b890 /drivers/media/common/siano/smsendian.c | |
parent | c8b8fdb39dabef67307df884212401c20877d9d2 (diff) |
[media] siano: get rid of CammelCase from smscoreapi.h
It is almost impossible to see a compliant with checkpatch.pl
on those Siano drivers, as there are simply too much violations
on it. So, now that a big change was done, the better is to
cleanup the checkpatch compliants.
Let's first replace all CammelCase symbols found at smscoreapi.h
using camel_case namespace. That removed 144 checkpatch.pl
compliants on this file. Of course, the other files need to be
fixed accordingly.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/siano/smsendian.c')
-rw-r--r-- | drivers/media/common/siano/smsendian.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/media/common/siano/smsendian.c b/drivers/media/common/siano/smsendian.c index e2657c2f0109..32a7b28bd324 100644 --- a/drivers/media/common/siano/smsendian.c +++ b/drivers/media/common/siano/smsendian.c | |||
@@ -28,11 +28,11 @@ | |||
28 | void smsendian_handle_tx_message(void *buffer) | 28 | void smsendian_handle_tx_message(void *buffer) |
29 | { | 29 | { |
30 | #ifdef __BIG_ENDIAN | 30 | #ifdef __BIG_ENDIAN |
31 | struct SmsMsgData_ST *msg = (struct SmsMsgData_ST *)buffer; | 31 | struct sms_msg_data *msg = (struct sms_msg_data *)buffer; |
32 | int i; | 32 | int i; |
33 | int msgWords; | 33 | int msgWords; |
34 | 34 | ||
35 | switch (msg->xMsgHeader.msgType) { | 35 | switch (msg->x_msg_header.msg_type) { |
36 | case MSG_SMS_DATA_DOWNLOAD_REQ: | 36 | case MSG_SMS_DATA_DOWNLOAD_REQ: |
37 | { | 37 | { |
38 | msg->msgData[0] = le32_to_cpu(msg->msgData[0]); | 38 | msg->msgData[0] = le32_to_cpu(msg->msgData[0]); |
@@ -40,8 +40,8 @@ void smsendian_handle_tx_message(void *buffer) | |||
40 | } | 40 | } |
41 | 41 | ||
42 | default: | 42 | default: |
43 | msgWords = (msg->xMsgHeader.msgLength - | 43 | msgWords = (msg->x_msg_header.msg_length - |
44 | sizeof(struct SmsMsgHdr_ST))/4; | 44 | sizeof(struct sms_msg_hdr))/4; |
45 | 45 | ||
46 | for (i = 0; i < msgWords; i++) | 46 | for (i = 0; i < msgWords; i++) |
47 | msg->msgData[i] = le32_to_cpu(msg->msgData[i]); | 47 | msg->msgData[i] = le32_to_cpu(msg->msgData[i]); |
@@ -55,16 +55,16 @@ EXPORT_SYMBOL_GPL(smsendian_handle_tx_message); | |||
55 | void smsendian_handle_rx_message(void *buffer) | 55 | void smsendian_handle_rx_message(void *buffer) |
56 | { | 56 | { |
57 | #ifdef __BIG_ENDIAN | 57 | #ifdef __BIG_ENDIAN |
58 | struct SmsMsgData_ST *msg = (struct SmsMsgData_ST *)buffer; | 58 | struct sms_msg_data *msg = (struct sms_msg_data *)buffer; |
59 | int i; | 59 | int i; |
60 | int msgWords; | 60 | int msgWords; |
61 | 61 | ||
62 | switch (msg->xMsgHeader.msgType) { | 62 | switch (msg->x_msg_header.msg_type) { |
63 | case MSG_SMS_GET_VERSION_EX_RES: | 63 | case MSG_SMS_GET_VERSION_EX_RES: |
64 | { | 64 | { |
65 | struct SmsVersionRes_ST *ver = | 65 | struct sms_version_res *ver = |
66 | (struct SmsVersionRes_ST *) msg; | 66 | (struct sms_version_res *) msg; |
67 | ver->ChipModel = le16_to_cpu(ver->ChipModel); | 67 | ver->chip_model = le16_to_cpu(ver->chip_model); |
68 | break; | 68 | break; |
69 | } | 69 | } |
70 | 70 | ||
@@ -77,8 +77,8 @@ void smsendian_handle_rx_message(void *buffer) | |||
77 | 77 | ||
78 | default: | 78 | default: |
79 | { | 79 | { |
80 | msgWords = (msg->xMsgHeader.msgLength - | 80 | msgWords = (msg->x_msg_header.msg_length - |
81 | sizeof(struct SmsMsgHdr_ST))/4; | 81 | sizeof(struct sms_msg_hdr))/4; |
82 | 82 | ||
83 | for (i = 0; i < msgWords; i++) | 83 | for (i = 0; i < msgWords; i++) |
84 | msg->msgData[i] = le32_to_cpu(msg->msgData[i]); | 84 | msg->msgData[i] = le32_to_cpu(msg->msgData[i]); |
@@ -93,11 +93,11 @@ EXPORT_SYMBOL_GPL(smsendian_handle_rx_message); | |||
93 | void smsendian_handle_message_header(void *msg) | 93 | void smsendian_handle_message_header(void *msg) |
94 | { | 94 | { |
95 | #ifdef __BIG_ENDIAN | 95 | #ifdef __BIG_ENDIAN |
96 | struct SmsMsgHdr_ST *phdr = (struct SmsMsgHdr_ST *)msg; | 96 | struct sms_msg_hdr *phdr = (struct sms_msg_hdr *)msg; |
97 | 97 | ||
98 | phdr->msgType = le16_to_cpu(phdr->msgType); | 98 | phdr->msg_type = le16_to_cpu(phdr->msg_type); |
99 | phdr->msgLength = le16_to_cpu(phdr->msgLength); | 99 | phdr->msg_length = le16_to_cpu(phdr->msg_length); |
100 | phdr->msgFlags = le16_to_cpu(phdr->msgFlags); | 100 | phdr->msg_flags = le16_to_cpu(phdr->msg_flags); |
101 | #endif /* __BIG_ENDIAN */ | 101 | #endif /* __BIG_ENDIAN */ |
102 | } | 102 | } |
103 | EXPORT_SYMBOL_GPL(smsendian_handle_message_header); | 103 | EXPORT_SYMBOL_GPL(smsendian_handle_message_header); |