]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drivers: staging: dgap: move DG_NAME and DG_PART from "Makefile" to "dgap_driver.h"
authorChen Gang <gang.chen@asianux.com>
Sat, 21 Sep 2013 12:38:30 +0000 (20:38 +0800)
committerJiri Slaby <jslaby@suse.cz>
Tue, 9 Jun 2015 10:12:32 +0000 (12:12 +0200)
commitd5b7aee1b3f1a0263b2c9266ecf08b5293e13139
tree1a93f57396a28698b1d51736ec907890ff639330
parentbab6655ecb3ff43da784f5297ac04f5d991c1e23
drivers: staging: dgap: move DG_NAME and DG_PART from "Makefile" to "dgap_driver.h"

commit 6319c61aecc7acaf39a1dc0e81a8aac6a17499ee upstream.

Normally, the macros from command line are system specific macros (e.g
__linux, __KERNEL__ ...), and module own macros are usually defined in
their header files.

DG_NAME and DG_PART are driver 'dgap' owned macros which are used by
multiple files within driver, and need be defined in the driver main
header file.

So move DG_NAME and DG_PART to "dgap_driver.h", it not only can make
code clearer, but also can avoid compiling failure when EXTRA_CFLAGS
appended to make command line (e.g. "EXTRA_CFLAGS=-W").

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/staging/dgap/Makefile
drivers/staging/dgap/dgap_driver.h