diff options
author | Joe Perches <joe@perches.com> | 2013-04-05 15:27:37 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-09-24 19:35:39 -0400 |
commit | b48348395ff665f49c7c684c93c5ce09fd0a0307 (patch) | |
tree | 73a27a2efd2a6b778a0aacb0764368ec621b6a22 /drivers/nfc/nfcsim.c | |
parent | 3943826177945c0f7e82fcf1f37797149c6d9c91 (diff) |
NFC: Replace nfc_dev_dbg with dev_dbg
Use the generic kernel function instead of a home-grown
one that does the same thing.
Add \n to uses not at the macro. Don't add \n where
the nfc_dev_dbg macro mistakenly had them already.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/nfcsim.c')
-rw-r--r-- | drivers/nfc/nfcsim.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/nfc/nfcsim.c b/drivers/nfc/nfcsim.c index 9a53f13c88df..4a614794ea61 100644 --- a/drivers/nfc/nfcsim.c +++ b/drivers/nfc/nfcsim.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #define DEV_ERR(_dev, fmt, args...) nfc_dev_err(&_dev->nfc_dev->dev, \ | 22 | #define DEV_ERR(_dev, fmt, args...) nfc_dev_err(&_dev->nfc_dev->dev, \ |
23 | "%s: " fmt, __func__, ## args) | 23 | "%s: " fmt, __func__, ## args) |
24 | 24 | ||
25 | #define DEV_DBG(_dev, fmt, args...) nfc_dev_dbg(&_dev->nfc_dev->dev, \ | 25 | #define DEV_DBG(_dev, fmt, args...) dev_dbg(&_dev->nfc_dev->dev, \ |
26 | "%s: " fmt, __func__, ## args) | 26 | "%s: " fmt, __func__, ## args) |
27 | 27 | ||
28 | #define NFCSIM_VERSION "0.1" | 28 | #define NFCSIM_VERSION "0.1" |
@@ -64,7 +64,7 @@ static struct workqueue_struct *wq; | |||
64 | 64 | ||
65 | static void nfcsim_cleanup_dev(struct nfcsim *dev, u8 shutdown) | 65 | static void nfcsim_cleanup_dev(struct nfcsim *dev, u8 shutdown) |
66 | { | 66 | { |
67 | DEV_DBG(dev, "shutdown=%d", shutdown); | 67 | DEV_DBG(dev, "shutdown=%d\n", shutdown); |
68 | 68 | ||
69 | mutex_lock(&dev->lock); | 69 | mutex_lock(&dev->lock); |
70 | 70 | ||
@@ -84,7 +84,7 @@ static int nfcsim_target_found(struct nfcsim *dev) | |||
84 | { | 84 | { |
85 | struct nfc_target nfc_tgt; | 85 | struct nfc_target nfc_tgt; |
86 | 86 | ||
87 | DEV_DBG(dev, ""); | 87 | DEV_DBG(dev, "\n"); |
88 | 88 | ||
89 | memset(&nfc_tgt, 0, sizeof(struct nfc_target)); | 89 | memset(&nfc_tgt, 0, sizeof(struct nfc_target)); |
90 | 90 | ||
@@ -98,7 +98,7 @@ static int nfcsim_dev_up(struct nfc_dev *nfc_dev) | |||
98 | { | 98 | { |
99 | struct nfcsim *dev = nfc_get_drvdata(nfc_dev); | 99 | struct nfcsim *dev = nfc_get_drvdata(nfc_dev); |
100 | 100 | ||
101 | DEV_DBG(dev, ""); | 101 | DEV_DBG(dev, "\n"); |
102 | 102 | ||
103 | mutex_lock(&dev->lock); | 103 | mutex_lock(&dev->lock); |
104 | 104 | ||
@@ -113,7 +113,7 @@ static int nfcsim_dev_down(struct nfc_dev *nfc_dev) | |||
113 | { | 113 | { |
114 | struct nfcsim *dev = nfc_get_drvdata(nfc_dev); | 114 | struct nfcsim *dev = nfc_get_drvdata(nfc_dev); |
115 | 115 | ||
116 | DEV_DBG(dev, ""); | 116 | DEV_DBG(dev, "\n"); |
117 | 117 | ||
118 | mutex_lock(&dev->lock); | 118 | mutex_lock(&dev->lock); |
119 | 119 | ||
@@ -172,7 +172,7 @@ static int nfcsim_dep_link_down(struct nfc_dev *nfc_dev) | |||
172 | { | 172 | { |
173 | struct nfcsim *dev = nfc_get_drvdata(nfc_dev); | 173 | struct nfcsim *dev = nfc_get_drvdata(nfc_dev); |
174 | 174 | ||
175 | DEV_DBG(dev, ""); | 175 | DEV_DBG(dev, "\n"); |
176 | 176 | ||
177 | nfcsim_cleanup_dev(dev, 0); | 177 | nfcsim_cleanup_dev(dev, 0); |
178 | 178 | ||
@@ -210,7 +210,7 @@ static int nfcsim_start_poll(struct nfc_dev *nfc_dev, | |||
210 | 210 | ||
211 | queue_delayed_work(wq, &dev->poll_work, 0); | 211 | queue_delayed_work(wq, &dev->poll_work, 0); |
212 | 212 | ||
213 | DEV_DBG(dev, "Start polling: im: 0x%X, tm: 0x%X", im_protocols, | 213 | DEV_DBG(dev, "Start polling: im: 0x%X, tm: 0x%X\n", im_protocols, |
214 | tm_protocols); | 214 | tm_protocols); |
215 | 215 | ||
216 | rc = 0; | 216 | rc = 0; |
@@ -224,7 +224,7 @@ static void nfcsim_stop_poll(struct nfc_dev *nfc_dev) | |||
224 | { | 224 | { |
225 | struct nfcsim *dev = nfc_get_drvdata(nfc_dev); | 225 | struct nfcsim *dev = nfc_get_drvdata(nfc_dev); |
226 | 226 | ||
227 | DEV_DBG(dev, "Stop poll"); | 227 | DEV_DBG(dev, "Stop poll\n"); |
228 | 228 | ||
229 | mutex_lock(&dev->lock); | 229 | mutex_lock(&dev->lock); |
230 | 230 | ||
@@ -240,7 +240,7 @@ static int nfcsim_activate_target(struct nfc_dev *nfc_dev, | |||
240 | { | 240 | { |
241 | struct nfcsim *dev = nfc_get_drvdata(nfc_dev); | 241 | struct nfcsim *dev = nfc_get_drvdata(nfc_dev); |
242 | 242 | ||
243 | DEV_DBG(dev, ""); | 243 | DEV_DBG(dev, "\n"); |
244 | 244 | ||
245 | return -ENOTSUPP; | 245 | return -ENOTSUPP; |
246 | } | 246 | } |
@@ -250,7 +250,7 @@ static void nfcsim_deactivate_target(struct nfc_dev *nfc_dev, | |||
250 | { | 250 | { |
251 | struct nfcsim *dev = nfc_get_drvdata(nfc_dev); | 251 | struct nfcsim *dev = nfc_get_drvdata(nfc_dev); |
252 | 252 | ||
253 | DEV_DBG(dev, ""); | 253 | DEV_DBG(dev, "\n"); |
254 | } | 254 | } |
255 | 255 | ||
256 | static void nfcsim_wq_recv(struct work_struct *work) | 256 | static void nfcsim_wq_recv(struct work_struct *work) |
@@ -397,13 +397,13 @@ static void nfcsim_wq_poll(struct work_struct *work) | |||
397 | nfcsim_set_polling_mode(dev); | 397 | nfcsim_set_polling_mode(dev); |
398 | 398 | ||
399 | if (dev->curr_polling_mode == NFCSIM_POLL_NONE) { | 399 | if (dev->curr_polling_mode == NFCSIM_POLL_NONE) { |
400 | DEV_DBG(dev, "Not polling"); | 400 | DEV_DBG(dev, "Not polling\n"); |
401 | goto unlock; | 401 | goto unlock; |
402 | } | 402 | } |
403 | 403 | ||
404 | DEV_DBG(dev, "Polling as %s", | 404 | DEV_DBG(dev, "Polling as %s", |
405 | dev->curr_polling_mode == NFCSIM_POLL_INITIATOR ? | 405 | dev->curr_polling_mode == NFCSIM_POLL_INITIATOR ? |
406 | "initiator" : "target"); | 406 | "initiator\n" : "target\n"); |
407 | 407 | ||
408 | if (dev->curr_polling_mode == NFCSIM_POLL_TARGET) | 408 | if (dev->curr_polling_mode == NFCSIM_POLL_TARGET) |
409 | goto sched_work; | 409 | goto sched_work; |