aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/zd1211rw/zd_def.h
diff options
context:
space:
mode:
authorKalle Valo <kvalo@codeaurora.org>2015-11-18 09:27:32 +0200
committerKalle Valo <kvalo@codeaurora.org>2015-11-18 14:28:30 +0200
commit6948300c79dba2b6c7b54af43d1924f51e47e017 (patch)
tree0660a79871b03cceb14fe31ac58c90452302e5fb /drivers/net/wireless/zd1211rw/zd_def.h
parented0ad06f5c8e5b8fc3c6d7c0e3d2dc546638c18c (diff)
downloadlinux-6948300c79dba2b6c7b54af43d1924f51e47e017.tar.gz
zd1211rw: move under zydas vendor directory
Part of reorganising wireless drivers directory and Kconfig. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_def.h')
-rw-r--r--drivers/net/wireless/zd1211rw/zd_def.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_def.h b/drivers/net/wireless/zd1211rw/zd_def.h
deleted file mode 100644
index 41bd755bc1353c..00000000000000
--- a/drivers/net/wireless/zd1211rw/zd_def.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/* ZD1211 USB-WLAN driver for Linux
- *
- * Copyright (C) 2005-2007 Ulrich Kunitz <kune@deine-taler.de>
- * Copyright (C) 2006-2007 Daniel Drake <dsd@gentoo.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef _ZD_DEF_H
-#define _ZD_DEF_H
-
-#include <linux/kernel.h>
-#include <linux/stringify.h>
-#include <linux/device.h>
-
-typedef u16 __nocast zd_addr_t;
-
-#define dev_printk_f(level, dev, fmt, args...) \
- dev_printk(level, dev, "%s() " fmt, __func__, ##args)
-
-#ifdef DEBUG
-# define dev_dbg_f(dev, fmt, args...) \
- dev_printk_f(KERN_DEBUG, dev, fmt, ## args)
-# define dev_dbg_f_limit(dev, fmt, args...) do { \
- if (net_ratelimit()) \
- dev_printk_f(KERN_DEBUG, dev, fmt, ## args); \
-} while (0)
-# define dev_dbg_f_cond(dev, cond, fmt, args...) ({ \
- bool __cond = !!(cond); \
- if (unlikely(__cond)) \
- dev_printk_f(KERN_DEBUG, dev, fmt, ## args); \
-})
-#else
-# define dev_dbg_f(dev, fmt, args...) do { (void)(dev); } while (0)
-# define dev_dbg_f_limit(dev, fmt, args...) do { (void)(dev); } while (0)
-# define dev_dbg_f_cond(dev, cond, fmt, args...) do { (void)(dev); } while (0)
-#endif /* DEBUG */
-
-#ifdef DEBUG
-# define ZD_ASSERT(x) \
-do { \
- if (unlikely(!(x))) { \
- pr_debug("%s:%d ASSERT %s VIOLATED!\n", \
- __FILE__, __LINE__, __stringify(x)); \
- dump_stack(); \
- } \
-} while (0)
-#else
-# define ZD_ASSERT(x) do { } while (0)
-#endif
-
-#ifdef DEBUG
-# define ZD_MEMCLEAR(pointer, size) memset((pointer), 0xff, (size))
-#else
-# define ZD_MEMCLEAR(pointer, size) do { } while (0)
-#endif
-
-#endif /* _ZD_DEF_H */