~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise-security

« back to all changes in this revision

Viewing changes to drivers/media/video/et61x251/et61x251.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef _ET61X251_H_
22
22
#define _ET61X251_H_
23
23
 
24
 
#include <linux/version.h>
25
24
#include <linux/usb.h>
26
25
#include <linux/videodev2.h>
27
26
#include <media/v4l2-common.h>
166
165
#undef DBG
167
166
#undef KDBG
168
167
#ifdef ET61X251_DEBUG
169
 
#       define DBG(level, fmt, args...)                                       \
170
 
do {                                                                          \
171
 
        if (debug >= (level)) {                                               \
172
 
                if ((level) == 1)                                             \
173
 
                        dev_err(&cam->usbdev->dev, fmt "\n", ## args);        \
174
 
                else if ((level) == 2)                                        \
175
 
                        dev_info(&cam->usbdev->dev, fmt "\n", ## args);       \
176
 
                else if ((level) >= 3)                                        \
177
 
                        dev_info(&cam->usbdev->dev, "[%s:%s:%d] " fmt "\n",   \
178
 
                                 __FILE__, __func__, __LINE__ , ## args); \
179
 
        }                                                                     \
180
 
} while (0)
181
 
#       define KDBG(level, fmt, args...)                                      \
182
 
do {                                                                          \
183
 
        if (debug >= (level)) {                                               \
184
 
                if ((level) == 1 || (level) == 2)                             \
185
 
                        pr_info("et61x251: " fmt "\n", ## args);              \
186
 
                else if ((level) == 3)                                        \
187
 
                        pr_debug("sn9c102: [%s:%s:%d] " fmt "\n", __FILE__,   \
188
 
                                 __func__, __LINE__ , ## args);           \
189
 
        }                                                                     \
190
 
} while (0)
191
 
#       define V4LDBG(level, name, cmd)                                       \
192
 
do {                                                                          \
193
 
        if (debug >= (level))                                                 \
194
 
                v4l_print_ioctl(name, cmd);                                   \
 
168
#define DBG(level, fmt, ...)                                            \
 
169
do {                                                                    \
 
170
        if (debug >= (level)) {                                         \
 
171
                if ((level) == 1)                                       \
 
172
                        dev_err(&cam->usbdev->dev, fmt "\n",            \
 
173
                                ##__VA_ARGS__);                         \
 
174
                else if ((level) == 2)                                  \
 
175
                        dev_info(&cam->usbdev->dev, fmt "\n",           \
 
176
                                 ##__VA_ARGS__);                        \
 
177
                else if ((level) >= 3)                                  \
 
178
                        dev_info(&cam->usbdev->dev, "[%s:%s:%d] " fmt "\n", \
 
179
                                 __FILE__, __func__, __LINE__,          \
 
180
                                 ##__VA_ARGS__);                        \
 
181
        }                                                               \
 
182
} while (0)
 
183
#define KDBG(level, fmt, ...)                                           \
 
184
do {                                                                    \
 
185
        if (debug >= (level)) {                                         \
 
186
                if ((level) == 1 || (level) == 2)                       \
 
187
                        pr_info(fmt "\n", ##__VA_ARGS__);               \
 
188
                else if ((level) == 3)                                  \
 
189
                        pr_debug("[%s:%s:%d] " fmt "\n",                \
 
190
                                 __FILE__,  __func__, __LINE__,         \
 
191
                                 ##__VA_ARGS__);                        \
 
192
        }                                                               \
 
193
} while (0)
 
194
#define V4LDBG(level, name, cmd)                                        \
 
195
do {                                                                    \
 
196
        if (debug >= (level))                                           \
 
197
                v4l_print_ioctl(name, cmd);                             \
195
198
} while (0)
196
199
#else
197
 
#       define DBG(level, fmt, args...) do {;} while(0)
198
 
#       define KDBG(level, fmt, args...) do {;} while(0)
199
 
#       define V4LDBG(level, name, cmd) do {;} while(0)
 
200
#define DBG(level, fmt, ...) do {;} while(0)
 
201
#define KDBG(level, fmt, ...) do {;} while(0)
 
202
#define V4LDBG(level, name, cmd) do {;} while(0)
200
203
#endif
201
204
 
202
205
#undef PDBG
203
 
#define PDBG(fmt, args...)                                                    \
204
 
dev_info(&cam->usbdev->dev, "[%s:%s:%d] " fmt "\n", __FILE__, __func__,   \
205
 
         __LINE__ , ## args)
 
206
#define PDBG(fmt, ...)                                                  \
 
207
        dev_info(&cam->usbdev->dev, "[%s:%s:%d] " fmt "\n",             \
 
208
                 __FILE__, __func__, __LINE__, ##__VA_ARGS__)
206
209
 
207
210
#undef PDBGG
208
 
#define PDBGG(fmt, args...) do {;} while(0) /* placeholder */
 
211
#define PDBGG(fmt, args...) do {;} while (0) /* placeholder */
209
212
 
210
213
#endif /* _ET61X251_H_ */