From: Chen Gang Date: Sat, 21 Sep 2013 12:38:30 +0000 (+0800) Subject: drivers: staging: dgap: move DG_NAME and DG_PART from "Makefile" to "dgap_driver.h" X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~651 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6319c61aecc7acaf39a1dc0e81a8aac6a17499ee;p=pandora-kernel.git drivers: staging: dgap: move DG_NAME and DG_PART from "Makefile" to "dgap_driver.h" 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed