mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Move simple macro up to avoid compiler warning
This commit is contained in:
parent
1dcb5d2a03
commit
edd7b4fb24
|
@ -18,6 +18,9 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#define DRIVER_NAME "tuxedo_keyboard"
|
||||
#define pr_fmt(fmt) DRIVER_NAME ": " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/acpi.h>
|
||||
|
@ -33,9 +36,6 @@ MODULE_VERSION("1.0.0");
|
|||
|
||||
/* :::: Module specific Constants and simple Macros :::: */
|
||||
|
||||
#define DRIVER_NAME "tuxedo_keyboard"
|
||||
#define pr_fmt(fmt) DRIVER_NAME ": " fmt
|
||||
|
||||
#define __TUXEDO_PR(lvl, fmt, ...) do { pr_##lvl(fmt, ##__VA_ARGS__); } while (0)
|
||||
#define TUXEDO_INFO(fmt, ...) __TUXEDO_PR(info, fmt, ##__VA_ARGS__)
|
||||
#define TUXEDO_ERROR(fmt, ...) __TUXEDO_PR(err, fmt, ##__VA_ARGS__)
|
||||
|
|
Loading…
Reference in a new issue