2016-02-07 12:52:24 +01:00
|
|
|
From 83bf4762e42a4d4a5c077f48d8f5715c9147d9b8 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Aurelien Jacobs <aurel@gnuage.org>
|
|
|
|
Date: Mon, 1 Feb 2016 22:37:36 +0100
|
|
|
|
Subject: [PATCH] beaglelogic: use standard # operator instead of ugly __STRING
|
|
|
|
macro
|
2016-01-31 14:58:55 +01:00
|
|
|
|
2016-02-07 12:52:24 +01:00
|
|
|
Also note that the __ namespace is reserved by POSIX for its private
|
|
|
|
usage, so user land software should never rely on any kind of API
|
|
|
|
with a __ prefix.
|
2016-01-31 14:58:55 +01:00
|
|
|
|
2016-02-07 12:52:24 +01:00
|
|
|
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
|
2016-01-31 14:58:55 +01:00
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|
|
|
---
|
2016-02-07 12:52:24 +01:00
|
|
|
Patch downloaded from upstream git:
|
|
|
|
http://sigrok.org/gitweb/?p=libsigrok.git;a=commit;h=83bf4762e42a4d4a5c077f48d8f5715c9147d9b8
|
2016-01-31 14:58:55 +01:00
|
|
|
|
2016-02-07 12:52:24 +01:00
|
|
|
src/hardware/beaglelogic/beaglelogic.h | 3 +--
|
|
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
2016-01-31 14:58:55 +01:00
|
|
|
|
|
|
|
diff --git a/src/hardware/beaglelogic/beaglelogic.h b/src/hardware/beaglelogic/beaglelogic.h
|
2016-02-07 12:52:24 +01:00
|
|
|
index 9015c61..96713ba 100644
|
2016-01-31 14:58:55 +01:00
|
|
|
--- a/src/hardware/beaglelogic/beaglelogic.h
|
|
|
|
+++ b/src/hardware/beaglelogic/beaglelogic.h
|
2016-02-07 12:52:24 +01:00
|
|
|
@@ -30,8 +30,7 @@
|
2016-01-31 14:58:55 +01:00
|
|
|
|
|
|
|
/* BeagleLogic device node name */
|
|
|
|
#define BEAGLELOGIC_DEV_NODE "/dev/beaglelogic"
|
2016-02-07 12:52:24 +01:00
|
|
|
-#define BEAGLELOGIC_SYSFS_ATTR(a) "/sys/devices/virtual/misc/beaglelogic/"\
|
|
|
|
- __STRING(a)
|
|
|
|
+#define BEAGLELOGIC_SYSFS_ATTR(a) "/sys/devices/virtual/misc/beaglelogic/" #a
|
|
|
|
|
|
|
|
/* Reproduced verbatim from beaglelogic.h in the kernel tree until the kernel
|
|
|
|
* module hits the mainline. Contains the ABI, so DO NOT TOUCH this section */
|
2016-01-31 14:58:55 +01:00
|
|
|
--
|
2016-02-07 12:52:24 +01:00
|
|
|
2.6.2
|
2016-01-31 14:58:55 +01:00
|
|
|
|